api-impl: misc APIs for WhatsApp media chooser Activities

This commit is contained in:
Julian Winkler
2025-04-23 18:21:19 +02:00
parent 69b742263a
commit e011092025
19 changed files with 123 additions and 26 deletions

View File

@@ -163,7 +163,10 @@ public class ImageView extends View {
public final void setColorFilter(int color, PorterDuff.Mode mode) {}
public void setImageTintList(ColorStateList tint) {
colorFilter = new PorterDuffColorFilter(tint.getDefaultColor(), PorterDuff.Mode.SRC_IN);
if (tint == null)
colorFilter = null;
else
colorFilter = new PorterDuffColorFilter(tint.getDefaultColor(), PorterDuff.Mode.SRC_IN);
setImageDrawable(drawable);
}
@@ -191,6 +194,10 @@ public class ImageView extends View {
public void setColorFilter(ColorFilter cf) {}
public Matrix getImageMatrix() {
return Matrix.IDENTITY_MATRIX;
}
@Override
protected native long native_constructor(Context context, AttributeSet attrs);
protected native void native_setDrawable(long widget, long paintable);