am c65e0c95: Merge "Fix a few more delegate methods in layoutlib."
* commit 'c65e0c95c855de4505a320b6dcd66df5397c88d5': Fix a few more delegate methods in layoutlib.
This commit is contained in:
@@ -151,13 +151,13 @@ import java.util.Set;
|
|||||||
}
|
}
|
||||||
|
|
||||||
@LayoutlibDelegate
|
@LayoutlibDelegate
|
||||||
/*package*/ static Bitmap nativeDecodeAsset(int asset, Rect padding, Options opts) {
|
/*package*/ static Bitmap nativeDecodeAsset(long asset, Rect padding, Options opts) {
|
||||||
opts.inBitmap = null;
|
opts.inBitmap = null;
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@LayoutlibDelegate
|
@LayoutlibDelegate
|
||||||
/*package*/ static Bitmap nativeDecodeAsset(int asset, Rect padding, Options opts,
|
/*package*/ static Bitmap nativeDecodeAsset(long asset, Rect padding, Options opts,
|
||||||
boolean applyScale, float scale) {
|
boolean applyScale, float scale) {
|
||||||
opts.inBitmap = null;
|
opts.inBitmap = null;
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
@@ -786,7 +786,7 @@ public final class Canvas_Delegate {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@LayoutlibDelegate
|
@LayoutlibDelegate
|
||||||
/*package*/ static void native_drawPath(long nativeCanvas, int path, long paint) {
|
/*package*/ static void native_drawPath(long nativeCanvas, long path, long paint) {
|
||||||
final Path_Delegate pathDelegate = Path_Delegate.getDelegate(path);
|
final Path_Delegate pathDelegate = Path_Delegate.getDelegate(path);
|
||||||
if (pathDelegate == null) {
|
if (pathDelegate == null) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -654,7 +654,7 @@ public final class Matrix_Delegate {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@LayoutlibDelegate
|
@LayoutlibDelegate
|
||||||
/*package*/ static boolean native_invert(long native_object, int inverse) {
|
/*package*/ static boolean native_invert(long native_object, long inverse) {
|
||||||
Matrix_Delegate d = sManager.getDelegate(native_object);
|
Matrix_Delegate d = sManager.getDelegate(native_object);
|
||||||
if (d == null) {
|
if (d == null) {
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user