apkfuckery/com.discord/smali/androidx/transition/ViewUtilsApi23.smali
2020-07-08 16:44:49 +00:00

69 lines
1.6 KiB
Smali

.class public Landroidx/transition/ViewUtilsApi23;
.super Landroidx/transition/ViewUtilsApi22;
.source "ViewUtilsApi23.java"
# annotations
.annotation build Landroidx/annotation/RequiresApi;
value = 0x17
.end annotation
# static fields
.field public static sTryHiddenSetTransitionVisibility:Z = true
# direct methods
.method public constructor <init>()V
.locals 0
invoke-direct {p0}, Landroidx/transition/ViewUtilsApi22;-><init>()V
return-void
.end method
# virtual methods
.method public setTransitionVisibility(Landroid/view/View;I)V
.locals 2
.param p1 # Landroid/view/View;
.annotation build Landroidx/annotation/NonNull;
.end annotation
.end param
.annotation build Landroid/annotation/SuppressLint;
value = {
"NewApi"
}
.end annotation
sget v0, Landroid/os/Build$VERSION;->SDK_INT:I
const/16 v1, 0x1c
if-ne v0, v1, :cond_0
invoke-super {p0, p1, p2}, Landroidx/transition/ViewUtilsBase;->setTransitionVisibility(Landroid/view/View;I)V
goto :goto_0
:cond_0
sget-boolean v0, Landroidx/transition/ViewUtilsApi23;->sTryHiddenSetTransitionVisibility:Z
if-eqz v0, :cond_1
:try_start_0
invoke-virtual {p1, p2}, Landroid/view/View;->setTransitionVisibility(I)V
:try_end_0
.catch Ljava/lang/NoSuchMethodError; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_0
:catch_0
const/4 p1, 0x0
sput-boolean p1, Landroidx/transition/ViewUtilsApi23;->sTryHiddenSetTransitionVisibility:Z
:cond_1
:goto_0
return-void
.end method