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 stubs and fixes for several apps including F-Droid and AuroraStore
This commit is contained in:
@@ -24,6 +24,7 @@ import android.graphics.PorterDuff;
|
||||
import android.graphics.PorterDuffColorFilter;
|
||||
import android.graphics.Rect;
|
||||
import android.util.AttributeSet;
|
||||
import android.util.LayoutDirection;
|
||||
import android.util.TypedValue;
|
||||
|
||||
public class Drawable {
|
||||
@@ -323,6 +324,10 @@ public class Drawable {
|
||||
|
||||
public void setHotspot(float x, float y) {}
|
||||
|
||||
public int getLayoutDirection() {
|
||||
return LayoutDirection.LTR;
|
||||
}
|
||||
|
||||
protected static native long native_paintable_from_path(String path);
|
||||
protected native long native_constructor();
|
||||
protected native void native_invalidate(long paintable);
|
||||
|
||||
@@ -1,8 +1,14 @@
|
||||
package android.graphics.drawable;
|
||||
|
||||
import android.graphics.Bitmap;
|
||||
|
||||
public class Icon {
|
||||
|
||||
public static Icon createWithResource(String packageName, int resourceId) {
|
||||
return null;
|
||||
}
|
||||
|
||||
public static Icon createWithBitmap(Bitmap bitmap) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user