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
api-impl: misc APIs for WhatsApp media chooser Activities
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user