apkfuckery/com.discord/smali/androidx/activity/OnBackPressedDispatcherKt.smali
2020-07-25 00:57:58 +00:00

83 lines
2.5 KiB
Smali

.class public final Landroidx/activity/OnBackPressedDispatcherKt;
.super Ljava/lang/Object;
.source "OnBackPressedDispatcher.kt"
# direct methods
.method public static final addCallback(Landroidx/activity/OnBackPressedDispatcher;Landroidx/lifecycle/LifecycleOwner;ZLkotlin/jvm/functions/Function1;)Landroidx/activity/OnBackPressedCallback;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Landroidx/activity/OnBackPressedDispatcher;",
"Landroidx/lifecycle/LifecycleOwner;",
"Z",
"Lkotlin/jvm/functions/Function1<",
"-",
"Landroidx/activity/OnBackPressedCallback;",
"Lkotlin/Unit;",
">;)",
"Landroidx/activity/OnBackPressedCallback;"
}
.end annotation
const/4 v0, 0x0
if-eqz p0, :cond_2
if-eqz p3, :cond_1
new-instance v0, Landroidx/activity/OnBackPressedDispatcherKt$addCallback$callback$1;
invoke-direct {v0, p3, p2, p2}, Landroidx/activity/OnBackPressedDispatcherKt$addCallback$callback$1;-><init>(Lkotlin/jvm/functions/Function1;ZZ)V
if-eqz p1, :cond_0
invoke-virtual {p0, p1, v0}, Landroidx/activity/OnBackPressedDispatcher;->addCallback(Landroidx/lifecycle/LifecycleOwner;Landroidx/activity/OnBackPressedCallback;)V
goto :goto_0
:cond_0
invoke-virtual {p0, v0}, Landroidx/activity/OnBackPressedDispatcher;->addCallback(Landroidx/activity/OnBackPressedCallback;)V
:goto_0
return-object v0
:cond_1
const-string p0, "onBackPressed"
invoke-static {p0}, Lj0/n/c/h;->c(Ljava/lang/String;)V
throw v0
:cond_2
const-string p0, "$this$addCallback"
invoke-static {p0}, Lj0/n/c/h;->c(Ljava/lang/String;)V
throw v0
.end method
.method public static synthetic addCallback$default(Landroidx/activity/OnBackPressedDispatcher;Landroidx/lifecycle/LifecycleOwner;ZLkotlin/jvm/functions/Function1;ILjava/lang/Object;)Landroidx/activity/OnBackPressedCallback;
.locals 0
and-int/lit8 p5, p4, 0x1
if-eqz p5, :cond_0
const/4 p1, 0x0
:cond_0
and-int/lit8 p4, p4, 0x2
if-eqz p4, :cond_1
const/4 p2, 0x1
:cond_1
invoke-static {p0, p1, p2, p3}, Landroidx/activity/OnBackPressedDispatcherKt;->addCallback(Landroidx/activity/OnBackPressedDispatcher;Landroidx/lifecycle/LifecycleOwner;ZLkotlin/jvm/functions/Function1;)Landroidx/activity/OnBackPressedCallback;
move-result-object p0
return-object p0
.end method