apkfuckery/com.discord/smali/com/discord/stores/StoreRunningGame$setRunning...

301 lines
11 KiB
Smali

.class final Lcom/discord/stores/StoreRunningGame$setRunningGame$1;
.super Ljava/lang/Object;
.source "StoreRunningGame.kt"
# interfaces
.implements Lrx/functions/Action0;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/discord/stores/StoreRunningGame;->setRunningGame(Landroid/content/Context;Lcom/discord/stores/StoreRunningGame$RunningGame;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x18
name = null
.end annotation
# instance fields
.field final synthetic $context:Landroid/content/Context;
.field final synthetic $newRunningGame:Lcom/discord/stores/StoreRunningGame$RunningGame;
.field final synthetic this$0:Lcom/discord/stores/StoreRunningGame;
# direct methods
.method constructor <init>(Lcom/discord/stores/StoreRunningGame;Lcom/discord/stores/StoreRunningGame$RunningGame;Landroid/content/Context;)V
.locals 0
iput-object p1, p0, Lcom/discord/stores/StoreRunningGame$setRunningGame$1;->this$0:Lcom/discord/stores/StoreRunningGame;
iput-object p2, p0, Lcom/discord/stores/StoreRunningGame$setRunningGame$1;->$newRunningGame:Lcom/discord/stores/StoreRunningGame$RunningGame;
iput-object p3, p0, Lcom/discord/stores/StoreRunningGame$setRunningGame$1;->$context:Landroid/content/Context;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public final call()V
.locals 13
iget-object v0, p0, Lcom/discord/stores/StoreRunningGame$setRunningGame$1;->$newRunningGame:Lcom/discord/stores/StoreRunningGame$RunningGame;
const/4 v1, 0x0
if-eqz v0, :cond_0
invoke-virtual {v0}, Lcom/discord/stores/StoreRunningGame$RunningGame;->getPackageName()Ljava/lang/String;
move-result-object v0
goto :goto_0
:cond_0
move-object v0, v1
:goto_0
iget-object v2, p0, Lcom/discord/stores/StoreRunningGame$setRunningGame$1;->this$0:Lcom/discord/stores/StoreRunningGame;
invoke-static {v2}, Lcom/discord/stores/StoreRunningGame;->access$getRunningGame$p(Lcom/discord/stores/StoreRunningGame;)Lcom/discord/stores/StoreRunningGame$RunningGame;
move-result-object v2
if-eqz v2, :cond_1
invoke-virtual {v2}, Lcom/discord/stores/StoreRunningGame$RunningGame;->getPackageName()Ljava/lang/String;
move-result-object v1
:cond_1
invoke-static {v0, v1}, Lkotlin/jvm/internal/j;->n(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v0
xor-int/lit8 v0, v0, 0x1
if-eqz v0, :cond_5
iget-object v0, p0, Lcom/discord/stores/StoreRunningGame$setRunningGame$1;->this$0:Lcom/discord/stores/StoreRunningGame;
iget-object v1, p0, Lcom/discord/stores/StoreRunningGame$setRunningGame$1;->$newRunningGame:Lcom/discord/stores/StoreRunningGame$RunningGame;
invoke-static {v0, v1}, Lcom/discord/stores/StoreRunningGame;->access$trackLaunchGame(Lcom/discord/stores/StoreRunningGame;Lcom/discord/stores/StoreRunningGame$RunningGame;)V
iget-object v0, p0, Lcom/discord/stores/StoreRunningGame$setRunningGame$1;->this$0:Lcom/discord/stores/StoreRunningGame;
iget-object v1, p0, Lcom/discord/stores/StoreRunningGame$setRunningGame$1;->$newRunningGame:Lcom/discord/stores/StoreRunningGame$RunningGame;
invoke-static {v0, v1}, Lcom/discord/stores/StoreRunningGame;->access$setRunningGame$p(Lcom/discord/stores/StoreRunningGame;Lcom/discord/stores/StoreRunningGame$RunningGame;)V
iget-object v0, p0, Lcom/discord/stores/StoreRunningGame$setRunningGame$1;->this$0:Lcom/discord/stores/StoreRunningGame;
invoke-static {v0}, Lcom/discord/stores/StoreRunningGame;->access$getRunningGameHeartbeatSub$p(Lcom/discord/stores/StoreRunningGame;)Lrx/Subscription;
move-result-object v0
if-eqz v0, :cond_2
invoke-interface {v0}, Lrx/Subscription;->unsubscribe()V
:cond_2
iget-object v0, p0, Lcom/discord/stores/StoreRunningGame$setRunningGame$1;->this$0:Lcom/discord/stores/StoreRunningGame;
invoke-static {v0}, Lcom/discord/stores/StoreRunningGame;->access$getRunningGame$p(Lcom/discord/stores/StoreRunningGame;)Lcom/discord/stores/StoreRunningGame$RunningGame;
move-result-object v0
if-eqz v0, :cond_3
const-wide/16 v0, 0x5a
sget-object v2, Ljava/util/concurrent/TimeUnit;->SECONDS:Ljava/util/concurrent/TimeUnit;
invoke-static {v0, v1, v2}, Lrx/Observable;->e(JLjava/util/concurrent/TimeUnit;)Lrx/Observable;
move-result-object v0
iget-object v1, p0, Lcom/discord/stores/StoreRunningGame$setRunningGame$1;->this$0:Lcom/discord/stores/StoreRunningGame;
invoke-virtual {v1}, Lcom/discord/stores/StoreRunningGame;->getStream()Lcom/discord/stores/StoreStream;
move-result-object v1
iget-object v1, v1, Lcom/discord/stores/StoreStream;->userSettings:Lcom/discord/stores/StoreUserSettings;
const-string v2, "stream\n .userSettings"
invoke-static {v1, v2}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v1}, Lcom/discord/stores/StoreUserSettings;->getAllowGameStatus()Lrx/Observable;
move-result-object v1
sget-object v2, Lcom/discord/stores/StoreRunningGame$setRunningGame$1$1;->INSTANCE:Lcom/discord/stores/StoreRunningGame$setRunningGame$1$1;
check-cast v2, Lrx/functions/Func2;
invoke-static {v0, v1, v2}, Lrx/Observable;->a(Lrx/Observable;Lrx/Observable;Lrx/functions/Func2;)Lrx/Observable;
move-result-object v0
iget-object v1, p0, Lcom/discord/stores/StoreRunningGame$setRunningGame$1;->this$0:Lcom/discord/stores/StoreRunningGame;
invoke-virtual {v1}, Lcom/discord/stores/StoreRunningGame;->getStream()Lcom/discord/stores/StoreStream;
move-result-object v1
iget-object v1, v1, Lcom/discord/stores/StoreStream;->scheduler:Lrx/Scheduler;
invoke-virtual {v0, v1}, Lrx/Observable;->a(Lrx/Scheduler;)Lrx/Observable;
move-result-object v2
const-string v0, "Observable.combineLatest\u2026serveOn(stream.scheduler)"
invoke-static {v2, v0}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
iget-object v0, p0, Lcom/discord/stores/StoreRunningGame$setRunningGame$1;->this$0:Lcom/discord/stores/StoreRunningGame;
invoke-virtual {v0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v3
const/4 v4, 0x0
new-instance v0, Lcom/discord/stores/StoreRunningGame$setRunningGame$1$2;
invoke-direct {v0, p0}, Lcom/discord/stores/StoreRunningGame$setRunningGame$1$2;-><init>(Lcom/discord/stores/StoreRunningGame$setRunningGame$1;)V
move-object v5, v0
check-cast v5, Lkotlin/jvm/functions/Function1;
const/4 v6, 0x0
const/4 v7, 0x0
new-instance v0, Lcom/discord/stores/StoreRunningGame$setRunningGame$1$3;
invoke-direct {v0, p0}, Lcom/discord/stores/StoreRunningGame$setRunningGame$1$3;-><init>(Lcom/discord/stores/StoreRunningGame$setRunningGame$1;)V
move-object v8, v0
check-cast v8, Lkotlin/jvm/functions/Function1;
const/16 v9, 0x1a
const/4 v10, 0x0
invoke-static/range {v2 .. v10}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->appSubscribe$default(Lrx/Observable;Ljava/lang/Class;Landroid/content/Context;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V
:cond_3
iget-object v0, p0, Lcom/discord/stores/StoreRunningGame$setRunningGame$1;->this$0:Lcom/discord/stores/StoreRunningGame;
invoke-static {v0}, Lcom/discord/stores/StoreRunningGame;->access$getRunningGameSubject$p(Lcom/discord/stores/StoreRunningGame;)Lrx/subjects/BehaviorSubject;
move-result-object v0
iget-object v1, p0, Lcom/discord/stores/StoreRunningGame$setRunningGame$1;->$newRunningGame:Lcom/discord/stores/StoreRunningGame$RunningGame;
invoke-virtual {v0, v1}, Lrx/subjects/BehaviorSubject;->onNext(Ljava/lang/Object;)V
iget-object v0, p0, Lcom/discord/stores/StoreRunningGame$setRunningGame$1;->this$0:Lcom/discord/stores/StoreRunningGame;
invoke-static {v0}, Lcom/discord/stores/StoreRunningGame;->access$isGameDetectionForceStopped$p(Lcom/discord/stores/StoreRunningGame;)Z
move-result v0
if-eqz v0, :cond_4
return-void
:cond_4
iget-object v0, p0, Lcom/discord/stores/StoreRunningGame$setRunningGame$1;->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;->userSettings:Lcom/discord/stores/StoreUserSettings;
const-string v1, "stream\n .userSettings"
invoke-static {v0, v1}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v0}, Lcom/discord/stores/StoreUserSettings;->getAllowGameStatus()Lrx/Observable;
move-result-object v0
sget-object v1, Lcom/discord/utilities/rest/RestAPI;->Companion:Lcom/discord/utilities/rest/RestAPI$Companion;
invoke-virtual {v1}, Lcom/discord/utilities/rest/RestAPI$Companion;->getApi()Lcom/discord/utilities/rest/RestAPI;
move-result-object v1
invoke-virtual {v1}, Lcom/discord/utilities/rest/RestAPI;->getExperiments()Lrx/Observable;
move-result-object v1
iget-object v2, p0, Lcom/discord/stores/StoreRunningGame$setRunningGame$1;->this$0:Lcom/discord/stores/StoreRunningGame;
invoke-virtual {v2}, Lcom/discord/stores/StoreRunningGame;->getStream()Lcom/discord/stores/StoreStream;
move-result-object v2
iget-object v2, v2, Lcom/discord/stores/StoreStream;->experiments:Lcom/discord/stores/StoreExperiments;
invoke-virtual {v2}, Lcom/discord/stores/StoreExperiments;->getExperimentalAlpha()Lrx/Observable;
move-result-object v2
sget-object v3, Lcom/discord/stores/StoreRunningGame$setRunningGame$1$4;->INSTANCE:Lcom/discord/stores/StoreRunningGame$setRunningGame$1$4;
check-cast v3, Lrx/functions/Func3;
invoke-static {v0, v1, v2, v3}, Lrx/Observable;->a(Lrx/Observable;Lrx/Observable;Lrx/Observable;Lrx/functions/Func3;)Lrx/Observable;
move-result-object v4
const-string v0, "Observable\n .co\u2026DETECTION)]))\n }"
invoke-static {v4, v0}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
iget-object v0, p0, Lcom/discord/stores/StoreRunningGame$setRunningGame$1;->this$0:Lcom/discord/stores/StoreRunningGame;
invoke-virtual {v0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v5
const/4 v6, 0x0
const/4 v7, 0x0
const/4 v8, 0x0
const/4 v9, 0x0
new-instance v0, Lcom/discord/stores/StoreRunningGame$setRunningGame$1$5;
invoke-direct {v0, p0}, Lcom/discord/stores/StoreRunningGame$setRunningGame$1$5;-><init>(Lcom/discord/stores/StoreRunningGame$setRunningGame$1;)V
move-object v10, v0
check-cast v10, Lkotlin/jvm/functions/Function1;
const/16 v11, 0x1e
const/4 v12, 0x0
invoke-static/range {v4 .. v12}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->appSubscribe$default(Lrx/Observable;Ljava/lang/Class;Landroid/content/Context;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V
:cond_5
return-void
.end method