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
some graphics API stubs
This commit is contained in:
@@ -90,7 +90,9 @@ public class Drawable {
|
||||
public final int getLevel() {return 0;}
|
||||
public final boolean setLevel(int level) {return false;}
|
||||
|
||||
public void setBounds(Rect bounds) {}
|
||||
public void setBounds(Rect bounds) {
|
||||
setBounds(bounds.left, bounds.top, bounds.right, bounds.bottom);
|
||||
}
|
||||
|
||||
public void setColorFilter(int color, PorterDuff.Mode mode) {}
|
||||
public void setColorFilter(ColorFilter filter) {}
|
||||
@@ -173,5 +175,9 @@ public class Drawable {
|
||||
return false;
|
||||
}
|
||||
|
||||
public void copyBounds(Rect bounds) {
|
||||
bounds.set(mBounds);
|
||||
}
|
||||
|
||||
protected static native long native_paintable_from_path(String path);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user