Rabbit-R1/original r1/smali/smali_classes2/androidx/transition/ImageViewUtils.smali
2024-05-21 17:08:36 -04:00

95 lines
2.3 KiB
Smali

.class Landroidx/transition/ImageViewUtils;
.super Ljava/lang/Object;
.source "ImageViewUtils.java"
# static fields
.field private static sDrawMatrixField:Ljava/lang/reflect/Field; = null
.field private static sDrawMatrixFieldFetched:Z = false
.field private static sTryHiddenAnimateTransform:Z = true
# direct methods
.method static constructor <clinit>()V
.locals 0
return-void
.end method
.method private constructor <init>()V
.locals 0
.line 111
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method static animateTransform(Landroid/widget/ImageView;Landroid/graphics/Matrix;)V
.locals 0
.line 46
invoke-virtual {p0, p1}, Landroid/widget/ImageView;->animateTransform(Landroid/graphics/Matrix;)V
return-void
.end method
.method private static fetchDrawMatrixField()V
.locals 3
sget-boolean v0, Landroidx/transition/ImageViewUtils;->sDrawMatrixFieldFetched:Z
if-nez v0, :cond_0
const/4 v0, 0x1
.line 102
:try_start_0
const-class v1, Landroid/widget/ImageView;
const-string v2, "mDrawMatrix"
invoke-virtual {v1, v2}, Ljava/lang/Class;->getDeclaredField(Ljava/lang/String;)Ljava/lang/reflect/Field;
move-result-object v1
sput-object v1, Landroidx/transition/ImageViewUtils;->sDrawMatrixField:Ljava/lang/reflect/Field;
.line 103
invoke-virtual {v1, v0}, Ljava/lang/reflect/Field;->setAccessible(Z)V
:try_end_0
.catch Ljava/lang/NoSuchFieldException; {:try_start_0 .. :try_end_0} :catch_0
:catch_0
sput-boolean v0, Landroidx/transition/ImageViewUtils;->sDrawMatrixFieldFetched:Z
:cond_0
return-void
.end method
.method private static hiddenAnimateTransform(Landroid/widget/ImageView;Landroid/graphics/Matrix;)V
.locals 1
sget-boolean v0, Landroidx/transition/ImageViewUtils;->sTryHiddenAnimateTransform:Z
if-eqz v0, :cond_0
.line 92
:try_start_0
invoke-virtual {p0, p1}, Landroid/widget/ImageView;->animateTransform(Landroid/graphics/Matrix;)V
:try_end_0
.catch Ljava/lang/NoSuchMethodError; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_0
:catch_0
const/4 p0, 0x0
sput-boolean p0, Landroidx/transition/ImageViewUtils;->sTryHiddenAnimateTransform:Z
:cond_0
:goto_0
return-void
.end method