166 lines
4.6 KiB
Smali
166 lines
4.6 KiB
Smali
.class final Lcom/discord/stores/StoreRunningGame$handleConnectionOpen$2;
|
|
.super Lkotlin/jvm/internal/k;
|
|
.source "StoreRunningGame.kt"
|
|
|
|
# interfaces
|
|
.implements Lkotlin/jvm/functions/Function1;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/discord/stores/StoreRunningGame;->handleConnectionOpen()V
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x18
|
|
name = null
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lkotlin/jvm/internal/k;",
|
|
"Lkotlin/jvm/functions/Function1<",
|
|
"Lkotlin/Pair<",
|
|
"+",
|
|
"Lcom/discord/models/domain/ModelExperiment;",
|
|
"+",
|
|
"Ljava/lang/Boolean;",
|
|
">;",
|
|
"Lkotlin/Unit;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field final synthetic this$0:Lcom/discord/stores/StoreRunningGame;
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>(Lcom/discord/stores/StoreRunningGame;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lcom/discord/stores/StoreRunningGame$handleConnectionOpen$2;->this$0:Lcom/discord/stores/StoreRunningGame;
|
|
|
|
const/4 p1, 0x1
|
|
|
|
invoke-direct {p0, p1}, Lkotlin/jvm/internal/k;-><init>(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final bridge synthetic invoke(Ljava/lang/Object;)Ljava/lang/Object;
|
|
.locals 0
|
|
|
|
check-cast p1, Lkotlin/Pair;
|
|
|
|
invoke-virtual {p0, p1}, Lcom/discord/stores/StoreRunningGame$handleConnectionOpen$2;->invoke(Lkotlin/Pair;)V
|
|
|
|
sget-object p1, Lkotlin/Unit;->bbV:Lkotlin/Unit;
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public final invoke(Lkotlin/Pair;)V
|
|
.locals 10
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lkotlin/Pair<",
|
|
"+",
|
|
"Lcom/discord/models/domain/ModelExperiment;",
|
|
"Ljava/lang/Boolean;",
|
|
">;)V"
|
|
}
|
|
.end annotation
|
|
|
|
iget-object v0, p1, Lkotlin/Pair;->first:Ljava/lang/Object;
|
|
|
|
check-cast v0, Lcom/discord/models/domain/ModelExperiment;
|
|
|
|
iget-object p1, p1, Lkotlin/Pair;->second:Ljava/lang/Object;
|
|
|
|
check-cast p1, Ljava/lang/Boolean;
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-virtual {v0}, Lcom/discord/models/domain/ModelExperiment;->getBucket()I
|
|
|
|
move-result v0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v0, -0x1
|
|
|
|
:goto_0
|
|
const/4 v1, 0x1
|
|
|
|
if-nez v0, :cond_1
|
|
|
|
iget-object p1, p0, Lcom/discord/stores/StoreRunningGame$handleConnectionOpen$2;->this$0:Lcom/discord/stores/StoreRunningGame;
|
|
|
|
invoke-static {p1, v1}, Lcom/discord/stores/StoreRunningGame;->access$setGameDetectionForceStopped$p(Lcom/discord/stores/StoreRunningGame;Z)V
|
|
|
|
return-void
|
|
|
|
:cond_1
|
|
const-string v2, "isStaffOrAlpha"
|
|
|
|
invoke-static {p1, v2}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Boolean;->booleanValue()Z
|
|
|
|
move-result p1
|
|
|
|
if-nez p1, :cond_2
|
|
|
|
if-ne v0, v1, :cond_3
|
|
|
|
:cond_2
|
|
sget-object p1, Lcom/discord/utilities/games/GameDetectionService;->Companion:Lcom/discord/utilities/games/GameDetectionService$Companion;
|
|
|
|
iget-object v0, p0, Lcom/discord/stores/StoreRunningGame$handleConnectionOpen$2;->this$0:Lcom/discord/stores/StoreRunningGame;
|
|
|
|
invoke-static {v0}, Lcom/discord/stores/StoreRunningGame;->access$getContext$p(Lcom/discord/stores/StoreRunningGame;)Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {p1, v0}, Lcom/discord/utilities/games/GameDetectionService$Companion;->startIfEnabled(Landroid/content/Context;)V
|
|
|
|
sget-object v1, Lcom/discord/stores/StoreNotices$Dialog$Type;->ENABLE_GAME_DETECTION_2:Lcom/discord/stores/StoreNotices$Dialog$Type;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
const-wide v3, 0x757b12c00L
|
|
|
|
const-wide/16 v5, 0x0
|
|
|
|
const/4 v7, 0x1
|
|
|
|
const/4 v8, 0x5
|
|
|
|
const/4 v9, 0x0
|
|
|
|
invoke-static/range {v1 .. v9}, Lcom/discord/stores/StoreNotices$Dialog$Type;->buildPassiveNotice$default(Lcom/discord/stores/StoreNotices$Dialog$Type;IJJZILjava/lang/Object;)Lcom/discord/stores/StoreNotices$PassiveNotice;
|
|
|
|
move-result-object p1
|
|
|
|
iget-object v0, p0, Lcom/discord/stores/StoreRunningGame$handleConnectionOpen$2;->this$0:Lcom/discord/stores/StoreRunningGame;
|
|
|
|
invoke-virtual {v0}, Lcom/discord/stores/StoreRunningGame;->getStream()Lcom/discord/stores/StoreStream;
|
|
|
|
move-result-object v0
|
|
|
|
iget-object v0, v0, Lcom/discord/stores/StoreStream;->notices:Lcom/discord/stores/StoreNotices;
|
|
|
|
check-cast p1, Lcom/discord/stores/StoreNotices$Notice;
|
|
|
|
invoke-virtual {v0, p1}, Lcom/discord/stores/StoreNotices;->requestToShow(Lcom/discord/stores/StoreNotices$Notice;)V
|
|
|
|
:cond_3
|
|
return-void
|
|
.end method
|