mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
44 lines
1.3 KiB
Java
44 lines
1.3 KiB
Java
|
package androidx.transition;
|
||
|
|
||
|
import android.graphics.Matrix;
|
||
|
import android.widget.ImageView;
|
||
|
import java.lang.reflect.Field;
|
||
|
|
||
|
/* loaded from: classes2.dex */
|
||
|
class ImageViewUtils {
|
||
|
private static Field sDrawMatrixField = null;
|
||
|
private static boolean sDrawMatrixFieldFetched = false;
|
||
|
private static boolean sTryHiddenAnimateTransform = true;
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public static void animateTransform(ImageView imageView, Matrix matrix) {
|
||
|
imageView.animateTransform(matrix);
|
||
|
}
|
||
|
|
||
|
private static void hiddenAnimateTransform(ImageView imageView, Matrix matrix) {
|
||
|
if (sTryHiddenAnimateTransform) {
|
||
|
try {
|
||
|
imageView.animateTransform(matrix);
|
||
|
} catch (NoSuchMethodError unused) {
|
||
|
sTryHiddenAnimateTransform = false;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
private static void fetchDrawMatrixField() {
|
||
|
if (sDrawMatrixFieldFetched) {
|
||
|
return;
|
||
|
}
|
||
|
try {
|
||
|
Field declaredField = ImageView.class.getDeclaredField("mDrawMatrix");
|
||
|
sDrawMatrixField = declaredField;
|
||
|
declaredField.setAccessible(true);
|
||
|
} catch (NoSuchFieldException unused) {
|
||
|
}
|
||
|
sDrawMatrixFieldFetched = true;
|
||
|
}
|
||
|
|
||
|
private ImageViewUtils() {
|
||
|
}
|
||
|
}
|