Rabbit-R1/original r1/java/sources/androidx/transition/ViewUtilsApi21.java
2024-05-21 17:08:36 -04:00

44 lines
1.4 KiB
Java

package androidx.transition;
import android.graphics.Matrix;
import android.view.View;
/* loaded from: classes2.dex */
class ViewUtilsApi21 extends ViewUtilsApi19 {
private static boolean sTryHiddenSetAnimationMatrix = true;
private static boolean sTryHiddenTransformMatrixToGlobal = true;
private static boolean sTryHiddenTransformMatrixToLocal = true;
@Override // androidx.transition.ViewUtilsBase
public void transformMatrixToGlobal(View view, Matrix matrix) {
if (sTryHiddenTransformMatrixToGlobal) {
try {
view.transformMatrixToGlobal(matrix);
} catch (NoSuchMethodError unused) {
sTryHiddenTransformMatrixToGlobal = false;
}
}
}
@Override // androidx.transition.ViewUtilsBase
public void transformMatrixToLocal(View view, Matrix matrix) {
if (sTryHiddenTransformMatrixToLocal) {
try {
view.transformMatrixToLocal(matrix);
} catch (NoSuchMethodError unused) {
sTryHiddenTransformMatrixToLocal = false;
}
}
}
@Override // androidx.transition.ViewUtilsBase
public void setAnimationMatrix(View view, Matrix matrix) {
if (sTryHiddenSetAnimationMatrix) {
try {
view.setAnimationMatrix(matrix);
} catch (NoSuchMethodError unused) {
sTryHiddenSetAnimationMatrix = false;
}
}
}
}