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
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:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user