.class public Lcom/facebook/internal/CustomTab; .super Ljava/lang/Object; .source "CustomTab.java" # instance fields .field private uri:Landroid/net/Uri; # direct methods .method public constructor (Ljava/lang/String;Landroid/os/Bundle;)V .locals 3 .prologue .line 36 invoke-direct {p0}, Ljava/lang/Object;->()V .line 37 if-nez p2, :cond_0 .line 38 new-instance p2, Landroid/os/Bundle; invoke-direct {p2}, Landroid/os/Bundle;->()V .line 41 :cond_0 invoke-static {}, Lcom/facebook/internal/ServerProtocol;->getDialogAuthority()Ljava/lang/String; move-result-object v0 new-instance v1, Ljava/lang/StringBuilder; invoke-direct {v1}, Ljava/lang/StringBuilder;->()V .line 42 invoke-static {}, Lcom/facebook/FacebookSdk;->getGraphApiVersion()Ljava/lang/String; move-result-object v2 invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v1 const-string v2, "/" invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v1 const-string v2, "dialog/" invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v1 invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v1 invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v1 .line 40 invoke-static {v0, v1, p2}, Lcom/facebook/internal/Utility;->buildUri(Ljava/lang/String;Ljava/lang/String;Landroid/os/Bundle;)Landroid/net/Uri; move-result-object v0 iput-object v0, p0, Lcom/facebook/internal/CustomTab;->uri:Landroid/net/Uri; .line 44 return-void .end method # virtual methods .method public openCustomTab(Landroid/app/Activity;Ljava/lang/String;)V .locals 3 .prologue .line 47 new-instance v0, Landroid/support/customtabs/CustomTabsIntent$Builder; invoke-direct {v0}, Landroid/support/customtabs/CustomTabsIntent$Builder;->()V invoke-virtual {v0}, Landroid/support/customtabs/CustomTabsIntent$Builder;->build()Landroid/support/customtabs/CustomTabsIntent; move-result-object v0 .line 48 iget-object v1, v0, Landroid/support/customtabs/CustomTabsIntent;->intent:Landroid/content/Intent; invoke-virtual {v1, p2}, Landroid/content/Intent;->setPackage(Ljava/lang/String;)Landroid/content/Intent; .line 49 iget-object v1, v0, Landroid/support/customtabs/CustomTabsIntent;->intent:Landroid/content/Intent; const/high16 v2, 0x40000000 # 2.0f invoke-virtual {v1, v2}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent; .line 50 iget-object v1, p0, Lcom/facebook/internal/CustomTab;->uri:Landroid/net/Uri; invoke-virtual {v0, p1, v1}, Landroid/support/customtabs/CustomTabsIntent;->launchUrl(Landroid/content/Context;Landroid/net/Uri;)V .line 51 return-void .end method