mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-25 16:42:30 -06:00
43 lines
1.3 KiB
Java
43 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() {
|
|
}
|
|
}
|