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: unset Drawable callback when unsetting Drawable
This commit is contained in:
@@ -74,6 +74,9 @@ public class ImageView extends View {
|
||||
drawable = drawable.mutate();
|
||||
drawable.setColorFilter(colorFilter);
|
||||
}
|
||||
if (this.drawable != null) {
|
||||
this.drawable.setCallback(null);
|
||||
}
|
||||
this.drawable = drawable;
|
||||
if (drawable != null) {
|
||||
drawable.setCallback(this);
|
||||
|
||||
Reference in New Issue
Block a user