Files
rr3-apk/smali_classes2/com/facebook/gamingservices/GamingContext$Companion.smali
supermegamestre 4bbd74a497 First Upload
Just the APK
Force update disabled, will only work offline.
2026-01-26 00:26:29 -03:00

133 lines
3.2 KiB
Smali

.class public final Lcom/facebook/gamingservices/GamingContext$Companion;
.super Ljava/lang/Object;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/facebook/gamingservices/GamingContext;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "Companion"
.end annotation
# direct methods
.method private constructor <init>()V
.locals 0
.line 18
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public synthetic constructor <init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
.locals 0
.line 0
invoke-direct {p0}, Lcom/facebook/gamingservices/GamingContext$Companion;-><init>()V
return-void
.end method
# virtual methods
.method public final getCurrentGamingContext()Lcom/facebook/gamingservices/GamingContext;
.locals 4
.line 24
invoke-static {}, Lcom/facebook/gamingservices/cloudgaming/CloudGameLoginHandler;->isRunningInCloud()Z
move-result v0
if-eqz v0, :cond_3
.line 27
invoke-static {}, Lcom/facebook/FacebookSdk;->getApplicationContext()Landroid/content/Context;
move-result-object v0
.line 29
sget-object v1, Lcom/facebook/gamingservices/cloudgaming/internal/SDKMessageEnum;->CONTEXT_GET_ID:Lcom/facebook/gamingservices/cloudgaming/internal/SDKMessageEnum;
const/4 v2, 0x5
const/4 v3, 0x0
.line 26
invoke-static {v0, v3, v1, v2}, Lcom/facebook/gamingservices/cloudgaming/DaemonRequest;->executeAndWait(Landroid/content/Context;Lorg/json/JSONObject;Lcom/facebook/gamingservices/cloudgaming/internal/SDKMessageEnum;I)Lcom/facebook/GraphResponse;
move-result-object v0
if-nez v0, :cond_0
:goto_0
move-object v0, v3
goto :goto_1
.line 31
:cond_0
invoke-virtual {v0}, Lcom/facebook/GraphResponse;->getJSONObject()Lorg/json/JSONObject;
move-result-object v0
if-nez v0, :cond_1
goto :goto_0
:cond_1
const-string v1, "id"
invoke-virtual {v0, v1}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
:goto_1
if-nez v0, :cond_2
return-object v3
.line 32
:cond_2
new-instance v1, Lcom/facebook/gamingservices/GamingContext;
invoke-direct {v1, v0}, Lcom/facebook/gamingservices/GamingContext;-><init>(Ljava/lang/String;)V
return-object v1
.line 34
:cond_3
invoke-static {}, Lcom/facebook/gamingservices/GamingContext;->access$getCurrentContext$cp()Lcom/facebook/gamingservices/GamingContext;
move-result-object v0
return-object v0
.end method
.method public final setCurrentGamingContext(Lcom/facebook/gamingservices/GamingContext;)V
.locals 1
const-string v0, "ctx"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 39
invoke-static {}, Lcom/facebook/gamingservices/cloudgaming/CloudGameLoginHandler;->isRunningInCloud()Z
move-result v0
if-eqz v0, :cond_0
return-void
.line 42
:cond_0
invoke-static {p1}, Lcom/facebook/gamingservices/GamingContext;->access$setCurrentContext$cp(Lcom/facebook/gamingservices/GamingContext;)V
return-void
.end method