borrow AnimationDrawable from AOSP

This commit is contained in:
Mis012
2024-04-03 01:54:30 +02:00
parent 04ee40d010
commit 1e64babfd4
6 changed files with 402 additions and 16 deletions

View File

@@ -73,6 +73,7 @@ public class ImageView extends View {
if (drawable instanceof BitmapDrawable) {
setImageBitmap(((BitmapDrawable) drawable).getBitmap());
} else if (drawable != null && drawable.paintable != 0) {
drawable.setCallback(this);
native_setDrawable(widget, drawable.paintable);
}
}