ViewUtilsApi22.smali
.class Landroidx/transition/ViewUtilsApi22;
.super Landroidx/transition/ViewUtilsApi21;
.source "ViewUtilsApi22.java"
# static fields
.field private static final TAG:Ljava/lang/String; = "ViewUtilsApi22"
.field private static sSetLeftTopRightBottomMethod:Ljava/lang/reflect/Method;
.field private static sSetLeftTopRightBottomMethodFetched:Z
# direct methods
.method static constructor <clinit>()V
.registers 1
return-void
.end method
.method constructor <init>()V
.registers 1
.line 29
invoke-direct {p0}, Landroidx/transition/ViewUtilsApi21;-><init>()V
return-void
.end method
.method private fetchSetLeftTopRightBottomMethod()V
.registers 7
.line 52
sget-boolean v0, Landroidx/transition/ViewUtilsApi22;->sSetLeftTopRightBottomMethodFetched:Z
if-nez v0, :cond_34
.line 54
const/4 v0, 0x1
:try_start_5
const-class v1, Landroid/view/View;
const-string/jumbo v2, "setLeftTopRightBottom"
const/4 v3, 0x4
new-array v3, v3, [Ljava/lang/Class;
const/4 v4, 0x0
sget-object v5, Ljava/lang/Integer;->TYPE:Ljava/lang/Class;
aput-object v5, v3, v4
sget-object v4, Ljava/lang/Integer;->TYPE:Ljava/lang/Class;
aput-object v4, v3, v0
const/4 v4, 0x2
sget-object v5, Ljava/lang/Integer;->TYPE:Ljava/lang/Class;
aput-object v5, v3, v4
const/4 v4, 0x3
sget-object v5, Ljava/lang/Integer;->TYPE:Ljava/lang/Class;
aput-object v5, v3, v4
invoke-virtual {v1, v2, v3}, Ljava/lang/Class;->getDeclaredMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
move-result-object v1
sput-object v1, Landroidx/transition/ViewUtilsApi22;->sSetLeftTopRightBottomMethod:Ljava/lang/reflect/Method;
.line 56
invoke-virtual {v1, v0}, Ljava/lang/reflect/Method;->setAccessible(Z)V
:try_end_29
.catch Ljava/lang/NoSuchMethodException; {:try_start_5 .. :try_end_29} :catch_2a
.line 59
goto :goto_32
.line 57
:catch_2a
move-exception v1
.line 58
.local v1, "e":Ljava/lang/NoSuchMethodException;
const-string v2, "ViewUtilsApi22"
const-string v3, "Failed to retrieve setLeftTopRightBottom method"
invoke-static {v2, v3, v1}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
.line 60
.end local v1 # "e":Ljava/lang/NoSuchMethodException;
:goto_32
sput-boolean v0, Landroidx/transition/ViewUtilsApi22;->sSetLeftTopRightBottomMethodFetched:Z
.line 62
:cond_34
return-void
.end method
# virtual methods
.method public setLeftTopRightBottom(Landroid/view/View;IIII)V
.registers 10
.param p1, "v" # Landroid/view/View;
.param p2, "left" # I
.param p3, "top" # I
.param p4, "right" # I
.param p5, "bottom" # I
.line 38
invoke-direct {p0}, Landroidx/transition/ViewUtilsApi22;->fetchSetLeftTopRightBottomMethod()V
.line 39
sget-object v0, Landroidx/transition/ViewUtilsApi22;->sSetLeftTopRightBottomMethod:Ljava/lang/reflect/Method;
if-eqz v0, :cond_36
.line 41
const/4 v1, 0x4
:try_start_8
new-array v1, v1, [Ljava/lang/Object;
const/4 v2, 0x0
invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v3
aput-object v3, v1, v2
const/4 v2, 0x1
invoke-static {p3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v3
aput-object v3, v1, v2
const/4 v2, 0x2
invoke-static {p4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v3
aput-object v3, v1, v2
const/4 v2, 0x3
invoke-static {p5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v3
aput-object v3, v1, v2
invoke-virtual {v0, p1, v1}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
:try_end_29
.catch Ljava/lang/IllegalAccessException; {:try_start_8 .. :try_end_29} :catch_35
.catch Ljava/lang/reflect/InvocationTargetException; {:try_start_8 .. :try_end_29} :catch_2a
goto :goto_36
.line 44
:catch_2a
move-exception v0
.line 45
.local v0, "e":Ljava/lang/reflect/InvocationTargetException;
new-instance v1, Ljava/lang/RuntimeException;
invoke-virtual {v0}, Ljava/lang/reflect/InvocationTargetException;->getCause()Ljava/lang/Throwable;
move-result-object v2
invoke-direct {v1, v2}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/Throwable;)V
throw v1
.line 42
.end local v0 # "e":Ljava/lang/reflect/InvocationTargetException;
:catch_35
move-exception v0
.line 48
:cond_36
:goto_36
return-void
.end method