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
This commit is contained in:
Julian Winkler
2024-05-19 10:25:43 +02:00
parent 415547a90d
commit 2324418813

View File

@@ -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];