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 ClipDrawable from AOSP
taken from AOSP master (commit ed8c91e410671fa153f1587f61d05b303bf94f95)
This commit is contained in:
@@ -268,6 +268,14 @@ public class Drawable {
|
||||
return new Drawable(paintable);
|
||||
}
|
||||
|
||||
public static Drawable createFromPath(String path) {
|
||||
if (path == null)
|
||||
return null;
|
||||
|
||||
long paintable = native_paintable_from_path(path);
|
||||
return new Drawable(paintable);
|
||||
}
|
||||
|
||||
protected boolean onStateChange(int[] stateSet) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user