Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
import ti.modules.titanium.ui.ImageViewProxy;
import android.app.Activity;
import android.graphics.Bitmap;
import android.graphics.drawable.VectorDrawable;
import android.os.Handler;
import android.os.Looper;
import android.os.Message;
Expand Down Expand Up @@ -664,7 +665,10 @@ private void setImageInternal()

if (imageSources.size() == 1) {
TiDrawableReference imageref = imageSources.get(0);

if (imageref.getDrawable() instanceof VectorDrawable) {
view.setBackground(imageref.getDrawable());
return;
}
// Check if the image is cached in memory
var key = imageref.getKey();
Bitmap bitmap = TiImageCache.getBitmap(key);
Expand Down
Loading