ContextSwitchDialog$WebHandler.smali
.class final Lcom/facebook/gamingservices/ContextSwitchDialog$WebHandler;
.super Lcom/facebook/internal/FacebookDialogBase$ModeHandler;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/facebook/gamingservices/ContextSwitchDialog;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x11
name = "WebHandler"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lcom/facebook/internal/FacebookDialogBase<",
"Lcom/facebook/gamingservices/model/ContextSwitchContent;",
"Lcom/facebook/gamingservices/ContextSwitchDialog$Result;",
">.ModeHandler;"
}
.end annotation
# instance fields
.field public final synthetic this$0:Lcom/facebook/gamingservices/ContextSwitchDialog;
# direct methods
.method public constructor <init>(Lcom/facebook/gamingservices/ContextSwitchDialog;)V
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"()V"
}
.end annotation
const-string v0, "this$0"
invoke-static {p1, v0}, Lcom/shopee/sz/loadtask/datasource/a;->y(Ljava/lang/Object;Ljava/lang/String;)V
iput-object p1, p0, Lcom/facebook/gamingservices/ContextSwitchDialog$WebHandler;->this$0:Lcom/facebook/gamingservices/ContextSwitchDialog;
invoke-direct {p0, p1}, Lcom/facebook/internal/FacebookDialogBase$ModeHandler;-><init>(Lcom/facebook/internal/FacebookDialogBase;)V
return-void
.end method
# virtual methods
.method public canShow(Lcom/facebook/gamingservices/model/ContextSwitchContent;Z)Z
.registers 3
const-string p2, "content"
invoke-static {p1, p2}, Lcom/shopee/sz/loadtask/datasource/a;->y(Ljava/lang/Object;Ljava/lang/String;)V
const/4 p1, 0x1
return p1
.end method
.method public bridge synthetic canShow(Ljava/lang/Object;Z)Z
.registers 3
check-cast p1, Lcom/facebook/gamingservices/model/ContextSwitchContent;
invoke-virtual {p0, p1, p2}, Lcom/facebook/gamingservices/ContextSwitchDialog$WebHandler;->canShow(Lcom/facebook/gamingservices/model/ContextSwitchContent;Z)Z
move-result p1
return p1
.end method
.method public createAppCall(Lcom/facebook/gamingservices/model/ContextSwitchContent;)Lcom/facebook/internal/AppCall;
.registers 5
const-string v0, "content"
invoke-static {p1, v0}, Lcom/shopee/sz/loadtask/datasource/a;->y(Ljava/lang/Object;Ljava/lang/String;)V
.line 2
iget-object v0, p0, Lcom/facebook/gamingservices/ContextSwitchDialog$WebHandler;->this$0:Lcom/facebook/gamingservices/ContextSwitchDialog;
invoke-virtual {v0}, Lcom/facebook/gamingservices/ContextSwitchDialog;->createBaseAppCall()Lcom/facebook/internal/AppCall;
move-result-object v0
.line 3
new-instance v1, Landroid/os/Bundle;
invoke-direct {v1}, Landroid/os/Bundle;-><init>()V
.line 4
invoke-virtual {p1}, Lcom/facebook/gamingservices/model/ContextSwitchContent;->getContextID()Ljava/lang/String;
move-result-object p1
const-string v2, "context_id"
invoke-virtual {v1, v2, p1}, Landroid/os/BaseBundle;->putString(Ljava/lang/String;Ljava/lang/String;)V
.line 5
sget-object p1, Lcom/facebook/AccessToken;->Companion:Lcom/facebook/AccessToken$Companion;
invoke-virtual {p1}, Lcom/facebook/AccessToken$Companion;->getCurrentAccessToken()Lcom/facebook/AccessToken;
move-result-object p1
if-nez p1, :cond_22
goto :goto_2b
.line 6
:cond_22
invoke-virtual {p1}, Lcom/facebook/AccessToken;->getToken()Ljava/lang/String;
move-result-object p1
const-string v2, "dialog_access_token"
invoke-virtual {v1, v2, p1}, Landroid/os/BaseBundle;->putString(Ljava/lang/String;Ljava/lang/String;)V
.line 7
:goto_2b
sget-object p1, Lcom/facebook/internal/DialogPresenter;->INSTANCE:Lcom/facebook/internal/DialogPresenter;
const-string p1, "context"
invoke-static {v0, p1, v1}, Lcom/facebook/internal/DialogPresenter;->setupAppCallForWebDialog(Lcom/facebook/internal/AppCall;Ljava/lang/String;Landroid/os/Bundle;)V
return-object v0
.end method
.method public bridge synthetic createAppCall(Ljava/lang/Object;)Lcom/facebook/internal/AppCall;
.registers 2
.line 1
check-cast p1, Lcom/facebook/gamingservices/model/ContextSwitchContent;
invoke-virtual {p0, p1}, Lcom/facebook/gamingservices/ContextSwitchDialog$WebHandler;->createAppCall(Lcom/facebook/gamingservices/model/ContextSwitchContent;)Lcom/facebook/internal/AppCall;
move-result-object p1
return-object p1
.end method