.class final Lcom/facebook/gamingservices/ContextCreateDialog$FacebookAppHandler; .super Lcom/facebook/internal/FacebookDialogBase$ModeHandler; .source "SourceFile" # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Lcom/facebook/gamingservices/ContextCreateDialog; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x11 name = "FacebookAppHandler" .end annotation .annotation system Ldalvik/annotation/Signature; value = { "Lcom/facebook/internal/FacebookDialogBase<", "Lcom/facebook/gamingservices/model/ContextCreateContent;", "Lcom/facebook/gamingservices/ContextCreateDialog$Result;", ">.ModeHandler;" } .end annotation # instance fields .field final synthetic this$0:Lcom/facebook/gamingservices/ContextCreateDialog; # direct methods .method public constructor (Lcom/facebook/gamingservices/ContextCreateDialog;)V .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "()V" } .end annotation const-string v0, "this$0" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V iput-object p1, p0, Lcom/facebook/gamingservices/ContextCreateDialog$FacebookAppHandler;->this$0:Lcom/facebook/gamingservices/ContextCreateDialog; .line 177 invoke-direct {p0, p1}, Lcom/facebook/internal/FacebookDialogBase$ModeHandler;->(Lcom/facebook/internal/FacebookDialogBase;)V return-void .end method # virtual methods .method public canShow(Lcom/facebook/gamingservices/model/ContextCreateContent;Z)Z .locals 3 const-string p2, "content" invoke-static {p1, p2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V iget-object p1, p0, Lcom/facebook/gamingservices/ContextCreateDialog$FacebookAppHandler;->this$0:Lcom/facebook/gamingservices/ContextCreateDialog; .line 179 invoke-static {p1}, Lcom/facebook/gamingservices/ContextCreateDialog;->access$getActivityContext(Lcom/facebook/gamingservices/ContextCreateDialog;)Landroid/app/Activity; move-result-object p1 const/4 p2, 0x0 if-nez p1, :cond_0 move-object p1, p2 goto :goto_0 :cond_0 invoke-virtual {p1}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager; move-result-object p1 .line 180 :goto_0 new-instance v0, Landroid/content/Intent; const-string v1, "com.facebook.games.gaming_services.DEEPLINK" invoke-direct {v0, v1}, Landroid/content/Intent;->(Ljava/lang/String;)V const-string v1, "text/plain" .line 181 invoke-virtual {v0, v1}, Landroid/content/Intent;->setType(Ljava/lang/String;)Landroid/content/Intent; if-nez p1, :cond_1 move-object p1, p2 goto :goto_1 .line 182 :cond_1 invoke-virtual {v0, p1}, Landroid/content/Intent;->resolveActivity(Landroid/content/pm/PackageManager;)Landroid/content/ComponentName; move-result-object p1 :goto_1 const/4 v0, 0x0 const/4 v1, 0x1 if-eqz p1, :cond_2 move p1, v1 goto :goto_2 :cond_2 move p1, v0 .line 183 :goto_2 sget-object v2, Lcom/facebook/AccessToken;->Companion:Lcom/facebook/AccessToken$Companion; invoke-virtual {v2}, Lcom/facebook/AccessToken$Companion;->getCurrentAccessToken()Lcom/facebook/AccessToken; move-result-object v2 if-nez v2, :cond_3 goto :goto_3 .line 185 :cond_3 invoke-virtual {v2}, Lcom/facebook/AccessToken;->getGraphDomain()Ljava/lang/String; move-result-object p2 :goto_3 if-eqz p2, :cond_4 const-string p2, "gaming" invoke-virtual {v2}, Lcom/facebook/AccessToken;->getGraphDomain()Ljava/lang/String; move-result-object v2 invoke-static {p2, v2}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z move-result p2 if-eqz p2, :cond_4 move p2, v1 goto :goto_4 :cond_4 move p2, v0 :goto_4 if-eqz p1, :cond_5 if-eqz p2, :cond_5 move v0, v1 :cond_5 return v0 .end method .method public bridge synthetic canShow(Ljava/lang/Object;Z)Z .locals 0 .line 177 check-cast p1, Lcom/facebook/gamingservices/model/ContextCreateContent; invoke-virtual {p0, p1, p2}, Lcom/facebook/gamingservices/ContextCreateDialog$FacebookAppHandler;->canShow(Lcom/facebook/gamingservices/model/ContextCreateContent;Z)Z move-result p1 return p1 .end method .method public createAppCall(Lcom/facebook/gamingservices/model/ContextCreateContent;)Lcom/facebook/internal/AppCall; .locals 6 const-string v0, "content" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V iget-object v0, p0, Lcom/facebook/gamingservices/ContextCreateDialog$FacebookAppHandler;->this$0:Lcom/facebook/gamingservices/ContextCreateDialog; .line 190 invoke-virtual {v0}, Lcom/facebook/gamingservices/ContextCreateDialog;->createBaseAppCall()Lcom/facebook/internal/AppCall; move-result-object v0 .line 191 new-instance v1, Landroid/content/Intent; const-string v2, "com.facebook.games.gaming_services.DEEPLINK" invoke-direct {v1, v2}, Landroid/content/Intent;->(Ljava/lang/String;)V const-string v2, "text/plain" .line 192 invoke-virtual {v1, v2}, Landroid/content/Intent;->setType(Ljava/lang/String;)Landroid/content/Intent; .line 193 sget-object v2, Lcom/facebook/AccessToken;->Companion:Lcom/facebook/AccessToken$Companion; invoke-virtual {v2}, Lcom/facebook/AccessToken$Companion;->getCurrentAccessToken()Lcom/facebook/AccessToken; move-result-object v2 .line 194 new-instance v3, Landroid/os/Bundle; invoke-direct {v3}, Landroid/os/Bundle;->()V const-string v4, "deeplink" const-string v5, "CONTEXT_CREATE" .line 195 invoke-virtual {v3, v4, v5}, Landroid/os/BaseBundle;->putString(Ljava/lang/String;Ljava/lang/String;)V const-string v4, "game_id" if-eqz v2, :cond_0 .line 197 invoke-virtual {v2}, Lcom/facebook/AccessToken;->getApplicationId()Ljava/lang/String; move-result-object v2 invoke-virtual {v3, v4, v2}, Landroid/os/BaseBundle;->putString(Ljava/lang/String;Ljava/lang/String;)V goto :goto_0 .line 199 :cond_0 invoke-static {}, Lcom/facebook/FacebookSdk;->getApplicationId()Ljava/lang/String; move-result-object v2 invoke-virtual {v3, v4, v2}, Landroid/os/BaseBundle;->putString(Ljava/lang/String;Ljava/lang/String;)V .line 201 :goto_0 invoke-virtual {p1}, Lcom/facebook/gamingservices/model/ContextCreateContent;->getSuggestedPlayerID()Ljava/lang/String; move-result-object v2 if-eqz v2, :cond_1 const-string v2, "player_id" .line 202 invoke-virtual {p1}, Lcom/facebook/gamingservices/model/ContextCreateContent;->getSuggestedPlayerID()Ljava/lang/String; move-result-object p1 invoke-virtual {v3, v2, p1}, Landroid/os/BaseBundle;->putString(Ljava/lang/String;Ljava/lang/String;)V .line 204 :cond_1 sget-object p1, Lcom/facebook/internal/NativeProtocol;->INSTANCE:Lcom/facebook/internal/NativeProtocol; .line 205 invoke-virtual {v0}, Lcom/facebook/internal/AppCall;->getCallId()Ljava/util/UUID; move-result-object p1 invoke-virtual {p1}, Ljava/util/UUID;->toString()Ljava/lang/String; move-result-object p1 const-string v2, "" invoke-static {}, Lcom/facebook/internal/NativeProtocol;->getLatestKnownVersion()I move-result v4 .line 204 invoke-static {v1, p1, v2, v4, v3}, Lcom/facebook/internal/NativeProtocol;->setupProtocolRequestIntent(Landroid/content/Intent;Ljava/lang/String;Ljava/lang/String;ILandroid/os/Bundle;)V .line 206 invoke-virtual {v0, v1}, Lcom/facebook/internal/AppCall;->setRequestIntent(Landroid/content/Intent;)V return-object v0 .end method .method public bridge synthetic createAppCall(Ljava/lang/Object;)Lcom/facebook/internal/AppCall; .locals 0 .line 177 check-cast p1, Lcom/facebook/gamingservices/model/ContextCreateContent; invoke-virtual {p0, p1}, Lcom/facebook/gamingservices/ContextCreateDialog$FacebookAppHandler;->createAppCall(Lcom/facebook/gamingservices/model/ContextCreateContent;)Lcom/facebook/internal/AppCall; move-result-object p1 return-object p1 .end method