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() { } }