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: add stubs / simple stuff for OsmAnd
without native libs present, launches and renders white square in map view; with native libs present, segfaults in bundled skia
This commit is contained in:
@@ -52,7 +52,7 @@ public class Drawable {
|
||||
return null;
|
||||
}
|
||||
|
||||
public abstract class ConstantState {
|
||||
public static abstract class ConstantState {
|
||||
|
||||
public abstract Drawable newDrawable(Resources res);
|
||||
|
||||
@@ -88,6 +88,10 @@ public class Drawable {
|
||||
this.callback = callback;
|
||||
}
|
||||
|
||||
public Callback getCallback() {
|
||||
return this.callback;
|
||||
}
|
||||
|
||||
public void invalidateSelf() {
|
||||
native_invalidate(paintable);
|
||||
|
||||
@@ -172,10 +176,16 @@ public class Drawable {
|
||||
VectorDrawable drawable = new VectorDrawable();
|
||||
drawable.inflate(resources, parser, parser, null);
|
||||
return drawable;
|
||||
} else if ("layer-list".equals(parser.getName())) {
|
||||
return new LayerDrawable();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static Drawable createFromXmlInner(Resources resources, XmlPullParser parser, AttributeSet attrs) {
|
||||
return createFromXmlInner(resources, parser, attrs, null);
|
||||
}
|
||||
|
||||
public static Drawable createFromXmlInner(Resources resources, XmlPullParser parser, AttributeSet attrs, Theme theme) {
|
||||
return null;
|
||||
}
|
||||
@@ -211,6 +221,13 @@ public class Drawable {
|
||||
bounds.set(mBounds);
|
||||
}
|
||||
|
||||
public int getMinimumWidth() {
|
||||
return 10; // FIXME
|
||||
}
|
||||
public int getMinimumHeight() {
|
||||
return 10; // FIXME
|
||||
}
|
||||
|
||||
protected void onBoundsChange(Rect bounds) {}
|
||||
|
||||
protected static native long native_paintable_from_path(String path);
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user