apkfuckery/com.discord/smali/androidx/activity/OnBackPressedDispatcherKt.smali

72 lines
2.4 KiB
Smali
Raw Normal View History

2020-07-08 16:44:49 +00:00
.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
2020-09-16 23:45:23 +00:00
const-string v0, "$this$addCallback"
2020-07-08 16:44:49 +00:00
2020-09-29 21:44:44 +00:00
invoke-static {p0, v0}, Lb0/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-07-08 16:44:49 +00:00
2020-09-16 23:45:23 +00:00
const-string v0, "onBackPressed"
2020-09-29 21:44:44 +00:00
invoke-static {p3, v0}, Lb0/n/c/j;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-07-08 16:44:49 +00:00
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
.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