147 lines
4.2 KiB
Smali
147 lines
4.2 KiB
Smali
|
.class final Lcom/discord/stores/StoreNavigation$ActivityNavigationLifecycleCallbacks$tosNavHandler$1;
|
||
|
.super Lkotlin/jvm/internal/l;
|
||
|
.source "StoreNavigation.kt"
|
||
|
|
||
|
# interfaces
|
||
|
.implements Lkotlin/jvm/functions/Function2;
|
||
|
|
||
|
|
||
|
# annotations
|
||
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
||
|
value = Lcom/discord/stores/StoreNavigation$ActivityNavigationLifecycleCallbacks;-><init>(Lcom/discord/stores/StoreStream;)V
|
||
|
.end annotation
|
||
|
|
||
|
.annotation system Ldalvik/annotation/InnerClass;
|
||
|
accessFlags = 0x18
|
||
|
name = null
|
||
|
.end annotation
|
||
|
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"Lkotlin/jvm/internal/l;",
|
||
|
"Lkotlin/jvm/functions/Function2<",
|
||
|
"Lcom/discord/app/AppActivity;",
|
||
|
"Lcom/discord/stores/StoreNavigation$ActivityNavigationLifecycleCallbacks$ModelGlobalNavigation;",
|
||
|
"Ljava/lang/Boolean;",
|
||
|
">;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
|
||
|
# static fields
|
||
|
.field public static final INSTANCE:Lcom/discord/stores/StoreNavigation$ActivityNavigationLifecycleCallbacks$tosNavHandler$1;
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method static constructor <clinit>()V
|
||
|
.locals 1
|
||
|
|
||
|
new-instance v0, Lcom/discord/stores/StoreNavigation$ActivityNavigationLifecycleCallbacks$tosNavHandler$1;
|
||
|
|
||
|
invoke-direct {v0}, Lcom/discord/stores/StoreNavigation$ActivityNavigationLifecycleCallbacks$tosNavHandler$1;-><init>()V
|
||
|
|
||
|
sput-object v0, Lcom/discord/stores/StoreNavigation$ActivityNavigationLifecycleCallbacks$tosNavHandler$1;->INSTANCE:Lcom/discord/stores/StoreNavigation$ActivityNavigationLifecycleCallbacks$tosNavHandler$1;
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method constructor <init>()V
|
||
|
.locals 1
|
||
|
|
||
|
const/4 v0, 0x2
|
||
|
|
||
|
invoke-direct {p0, v0}, Lkotlin/jvm/internal/l;-><init>(I)V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method public final synthetic invoke(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
||
|
.locals 0
|
||
|
|
||
|
check-cast p1, Lcom/discord/app/AppActivity;
|
||
|
|
||
|
check-cast p2, Lcom/discord/stores/StoreNavigation$ActivityNavigationLifecycleCallbacks$ModelGlobalNavigation;
|
||
|
|
||
|
invoke-virtual {p0, p1, p2}, Lcom/discord/stores/StoreNavigation$ActivityNavigationLifecycleCallbacks$tosNavHandler$1;->invoke(Lcom/discord/app/AppActivity;Lcom/discord/stores/StoreNavigation$ActivityNavigationLifecycleCallbacks$ModelGlobalNavigation;)Z
|
||
|
|
||
|
move-result p1
|
||
|
|
||
|
invoke-static {p1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
return-object p1
|
||
|
.end method
|
||
|
|
||
|
.method public final invoke(Lcom/discord/app/AppActivity;Lcom/discord/stores/StoreNavigation$ActivityNavigationLifecycleCallbacks$ModelGlobalNavigation;)Z
|
||
|
.locals 4
|
||
|
|
||
|
const-string v0, "activity"
|
||
|
|
||
|
invoke-static {p1, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
const-string v0, "model"
|
||
|
|
||
|
invoke-static {p2, v0}, Lkotlin/jvm/internal/k;->h(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
const-class v0, Lcom/discord/widgets/tos/WidgetTosAccept;
|
||
|
|
||
|
invoke-static {v0}, Lkotlin/jvm/internal/w;->Q(Ljava/lang/Class;)Lkotlin/reflect/b;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {p1, v0}, Lcom/discord/app/AppActivity;->a(Lkotlin/reflect/b;)Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
invoke-virtual {p2}, Lcom/discord/stores/StoreNavigation$ActivityNavigationLifecycleCallbacks$ModelGlobalNavigation;->getUserRequiredAction()Lcom/discord/models/domain/ModelUser$RequiredAction;
|
||
|
|
||
|
move-result-object p2
|
||
|
|
||
|
sget-object v1, Lcom/discord/models/domain/ModelUser$RequiredAction;->AGREEMENTS:Lcom/discord/models/domain/ModelUser$RequiredAction;
|
||
|
|
||
|
const/4 v2, 0x0
|
||
|
|
||
|
const/4 v3, 0x1
|
||
|
|
||
|
if-ne p2, v1, :cond_0
|
||
|
|
||
|
const/4 p2, 0x1
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
const/4 p2, 0x0
|
||
|
|
||
|
:goto_0
|
||
|
if-eqz p2, :cond_1
|
||
|
|
||
|
if-nez v0, :cond_1
|
||
|
|
||
|
sget-object p2, Lcom/discord/widgets/tos/WidgetTosAccept;->Companion:Lcom/discord/widgets/tos/WidgetTosAccept$Companion;
|
||
|
|
||
|
check-cast p1, Landroid/content/Context;
|
||
|
|
||
|
invoke-virtual {p2, p1}, Lcom/discord/widgets/tos/WidgetTosAccept$Companion;->show(Landroid/content/Context;)V
|
||
|
|
||
|
return v3
|
||
|
|
||
|
:cond_1
|
||
|
if-nez p2, :cond_2
|
||
|
|
||
|
if-eqz v0, :cond_2
|
||
|
|
||
|
check-cast p1, Landroid/content/Context;
|
||
|
|
||
|
const/4 p2, 0x6
|
||
|
|
||
|
invoke-static {p1, v2, p2}, Lcom/discord/app/f;->a(Landroid/content/Context;ZI)V
|
||
|
|
||
|
return v3
|
||
|
|
||
|
:cond_2
|
||
|
return p2
|
||
|
.end method
|