api-impl: misc stubs for K-9 Mail

This makes the non composeUI parts of K-9 Mail mostly functional.
This commit is contained in:
Julian Winkler
2025-01-12 10:42:51 +01:00
parent 554b4d346a
commit 64c5ebe5b6
14 changed files with 97 additions and 2 deletions

View File

@@ -41,7 +41,8 @@ public class ImageView extends View {
colorFilter = new PorterDuffColorFilter(a.getColor(com.android.internal.R.styleable.ImageView_tint, 0),
PorterDuff.Mode.values()[a.getInt(com.android.internal.R.styleable.ImageView_tintMode, PorterDuff.Mode.SRC_IN.nativeInt)]);
setImageDrawable(a.getDrawable(com.android.internal.R.styleable.ImageView_src));
setScaleType(scaletype_from_int[a.getInt(com.android.internal.R.styleable.ImageView_scaleType, 3 /*CENTER*/)]);
if (a.hasValue(com.android.internal.R.styleable.ImageView_scaleType))
setScaleType(scaletype_from_int[a.getInt(com.android.internal.R.styleable.ImageView_scaleType, 3 /*CENTER*/)]);
a.recycle();
}