From 2324418813e56aa6e9b7a8ad663d2b774b3a0dfd Mon Sep 17 00:00:00 2001 From: Julian Winkler Date: Sun, 19 May 2024 10:25:43 +0200 Subject: [PATCH] View.getMatrix(): always return identity matrix The returned Matrix should only represent rotation and scaling of the view and should not depend on the position. Since we don't support rotation and scaling yet, just always return identity --- src/api-impl/android/view/View.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/api-impl/android/view/View.java b/src/api-impl/android/view/View.java index 76918990..059a9576 100644 --- a/src/api-impl/android/view/View.java +++ b/src/api-impl/android/view/View.java @@ -1435,9 +1435,7 @@ public class View implements Drawable.Callback { protected native boolean native_getMatrix(long widget, long matrix); public Matrix getMatrix() { - Matrix matrix = new Matrix(); - native_getMatrix(widget, matrix.native_instance); - return matrix; + return Matrix.IDENTITY_MATRIX; } protected static final int[] EMPTY_STATE_SET = new int[0];