api-impl: more stubs to make OsmAnd launch

with latest bionic_translation, OsmAnd doesn't crash in native code
This commit is contained in:
Mis012
2024-04-14 15:15:37 +02:00
parent 62f91e8d3e
commit e1abceee85
3 changed files with 4 additions and 12 deletions

View File

@@ -1261,7 +1261,7 @@ public final class Bitmap {
* it will return true by default.
*/
public final boolean hasAlpha() {
return nativeHasAlpha(mNativeBitmap);
return true; // we only support ARGB_8888
}
/**
@@ -1637,7 +1637,6 @@ public final class Bitmap {
int[] offsetXY);
private static native void nativePrepareToDraw(int nativeBitmap);
private static native boolean nativeHasAlpha(int nativeBitmap);
private static native void nativeSetAlphaAndPremultiplied(int nBitmap, boolean hasAlpha,
boolean isPremul);
private static native boolean nativeHasMipMap(int nativeBitmap);