You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
ImageView: check if Drawable actually has a Paintable
This commit is contained in:
@@ -67,7 +67,7 @@ public class ImageView extends View {
|
||||
public void setImageDrawable(Drawable drawable) {
|
||||
if (drawable instanceof BitmapDrawable) {
|
||||
setImageBitmap(((BitmapDrawable) drawable).getBitmap());
|
||||
} else if (drawable != null) {
|
||||
} else if (drawable != null && drawable.paintable != 0) {
|
||||
native_setDrawable(widget, drawable.paintable);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user