apkfuckery/com.discord/smali/androidx/transition/ViewUtilsApi22.smali

180 lines
4.3 KiB
Smali
Raw Normal View History

2019-12-06 03:29:40 +00:00
.class public Landroidx/transition/ViewUtilsApi22;
2019-07-24 11:27:29 +00:00
.super Landroidx/transition/ViewUtilsApi21;
.source "ViewUtilsApi22.java"
2019-12-06 03:29:40 +00:00
# annotations
.annotation build Landroidx/annotation/RequiresApi;
value = 0x16
.end annotation
2019-07-24 11:27:29 +00:00
# static fields
2019-12-06 03:29:40 +00:00
.field public static final TAG:Ljava/lang/String; = "ViewUtilsApi22"
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public static sSetLeftTopRightBottomMethod:Ljava/lang/reflect/Method;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
.field public static sSetLeftTopRightBottomMethodFetched:Z
2019-07-24 11:27:29 +00:00
# direct methods
2019-12-06 03:29:40 +00:00
.method public constructor <init>()V
2019-07-24 11:27:29 +00:00
.locals 0
invoke-direct {p0}, Landroidx/transition/ViewUtilsApi21;-><init>()V
return-void
.end method
.method private fetchSetLeftTopRightBottomMethod()V
2019-12-06 03:29:40 +00:00
.locals 5
.annotation build Landroid/annotation/SuppressLint;
value = {
"PrivateApi"
}
.end annotation
2019-07-24 11:27:29 +00:00
sget-boolean v0, Landroidx/transition/ViewUtilsApi22;->sSetLeftTopRightBottomMethodFetched:Z
if-nez v0, :cond_0
const/4 v0, 0x1
:try_start_0
const-class v1, Landroid/view/View;
2019-12-06 03:29:40 +00:00
const/4 v2, 0x4
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
new-array v2, v2, [Ljava/lang/Class;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const/4 v3, 0x0
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
sget-object v4, Ljava/lang/Integer;->TYPE:Ljava/lang/Class;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
aput-object v4, v2, v3
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
sget-object v3, Ljava/lang/Integer;->TYPE:Ljava/lang/Class;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
aput-object v3, v2, v0
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const/4 v3, 0x2
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
sget-object v4, Ljava/lang/Integer;->TYPE:Ljava/lang/Class;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
aput-object v4, v2, v3
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const/4 v3, 0x3
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
sget-object v4, Ljava/lang/Integer;->TYPE:Ljava/lang/Class;
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
aput-object v4, v2, v3
:try_end_0
.catch Ljava/lang/NoSuchMethodException; {:try_start_0 .. :try_end_0} :catch_0
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
const-string v3, "setLeftTopRightBottom"
2019-07-24 11:27:29 +00:00
2019-12-06 03:29:40 +00:00
:try_start_1
invoke-virtual {v1, v3, v2}, Ljava/lang/Class;->getDeclaredMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;
2019-07-24 11:27:29 +00:00
move-result-object v1
sput-object v1, Landroidx/transition/ViewUtilsApi22;->sSetLeftTopRightBottomMethod:Ljava/lang/reflect/Method;
2019-12-06 03:29:40 +00:00
sget-object v1, Landroidx/transition/ViewUtilsApi22;->sSetLeftTopRightBottomMethod:Ljava/lang/reflect/Method;
2019-07-24 11:27:29 +00:00
invoke-virtual {v1, v0}, Ljava/lang/reflect/Method;->setAccessible(Z)V
2019-12-06 03:29:40 +00:00
:try_end_1
.catch Ljava/lang/NoSuchMethodException; {:try_start_1 .. :try_end_1} :catch_0
2019-07-24 11:27:29 +00:00
goto :goto_0
:catch_0
move-exception v1
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
:goto_0
sput-boolean v0, Landroidx/transition/ViewUtilsApi22;->sSetLeftTopRightBottomMethodFetched:Z
:cond_0
return-void
.end method
# virtual methods
.method public setLeftTopRightBottom(Landroid/view/View;IIII)V
.locals 3
invoke-direct {p0}, Landroidx/transition/ViewUtilsApi22;->fetchSetLeftTopRightBottomMethod()V
sget-object v0, Landroidx/transition/ViewUtilsApi22;->sSetLeftTopRightBottomMethod:Ljava/lang/reflect/Method;
if-eqz v0, :cond_0
const/4 v1, 0x4
:try_start_0
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 p2
aput-object p2, v1, v2
const/4 p2, 0x1
invoke-static {p3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p3
aput-object p3, v1, p2
const/4 p2, 0x2
invoke-static {p4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p3
aput-object p3, v1, p2
const/4 p2, 0x3
invoke-static {p5}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p3
aput-object p3, v1, p2
invoke-virtual {v0, p1, v1}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
:try_end_0
.catch Ljava/lang/IllegalAccessException; {:try_start_0 .. :try_end_0} :catch_1
.catch Ljava/lang/reflect/InvocationTargetException; {:try_start_0 .. :try_end_0} :catch_0
2019-12-06 03:29:40 +00:00
goto :goto_0
2019-07-24 11:27:29 +00:00
:catch_0
move-exception p1
new-instance p2, Ljava/lang/RuntimeException;
invoke-virtual {p1}, Ljava/lang/reflect/InvocationTargetException;->getCause()Ljava/lang/Throwable;
move-result-object p1
invoke-direct {p2, p1}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/Throwable;)V
throw p2
:catch_1
:cond_0
2019-12-06 03:29:40 +00:00
:goto_0
2019-07-24 11:27:29 +00:00
return-void
.end method