.class Lcom/facebook/share/widget/ShareDialog$NativeHandler; .super Lcom/facebook/internal/FacebookDialogBase$ModeHandler; .source "ShareDialog.java" # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Lcom/facebook/share/widget/ShareDialog; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x2 name = "NativeHandler" .end annotation .annotation system Ldalvik/annotation/Signature; value = { "Lcom/facebook/internal/FacebookDialogBase", "<", "Lcom/facebook/share/model/ShareContent;", "Lcom/facebook/share/Sharer$Result;", ">.ModeHandler;" } .end annotation # instance fields .field final synthetic this$0:Lcom/facebook/share/widget/ShareDialog; # direct methods .method private constructor (Lcom/facebook/share/widget/ShareDialog;)V .locals 0 .prologue .line 291 iput-object p1, p0, Lcom/facebook/share/widget/ShareDialog$NativeHandler;->this$0:Lcom/facebook/share/widget/ShareDialog; invoke-direct {p0, p1}, Lcom/facebook/internal/FacebookDialogBase$ModeHandler;->(Lcom/facebook/internal/FacebookDialogBase;)V return-void .end method .method synthetic constructor (Lcom/facebook/share/widget/ShareDialog;Lcom/facebook/share/widget/ShareDialog$1;)V .locals 0 .prologue .line 291 invoke-direct {p0, p1}, Lcom/facebook/share/widget/ShareDialog$NativeHandler;->(Lcom/facebook/share/widget/ShareDialog;)V return-void .end method # virtual methods .method public canShow(Lcom/facebook/share/model/ShareContent;Z)Z .locals 4 .prologue const/4 v2, 0x1 const/4 v3, 0x0 .line 299 if-nez p1, :cond_0 .line 320 :goto_0 return v3 .line 304 :cond_0 if-nez p2, :cond_4 .line 310 invoke-virtual {p1}, Lcom/facebook/share/model/ShareContent;->getShareHashtag()Lcom/facebook/share/model/ShareHashtag; move-result-object v0 if-eqz v0, :cond_3 .line 311 sget-object v0, Lcom/facebook/share/internal/ShareDialogFeature;->HASHTAG:Lcom/facebook/share/internal/ShareDialogFeature; invoke-static {v0}, Lcom/facebook/internal/DialogPresenter;->canPresentNativeDialogWithFeature(Lcom/facebook/internal/DialogFeature;)Z move-result v0 move v1, v0 .line 314 :goto_1 instance-of v0, p1, Lcom/facebook/share/model/ShareLinkContent; if-eqz v0, :cond_1 move-object v0, p1 check-cast v0, Lcom/facebook/share/model/ShareLinkContent; .line 315 invoke-virtual {v0}, Lcom/facebook/share/model/ShareLinkContent;->getQuote()Ljava/lang/String; move-result-object v0 invoke-static {v0}, Lcom/facebook/internal/Utility;->isNullOrEmpty(Ljava/lang/String;)Z move-result v0 if-nez v0, :cond_1 .line 316 sget-object v0, Lcom/facebook/share/internal/ShareDialogFeature;->LINK_SHARE_QUOTES:Lcom/facebook/share/internal/ShareDialogFeature; invoke-static {v0}, Lcom/facebook/internal/DialogPresenter;->canPresentNativeDialogWithFeature(Lcom/facebook/internal/DialogFeature;)Z move-result v0 and-int/2addr v1, v0 .line 320 :cond_1 :goto_2 if-eqz v1, :cond_2 invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class; move-result-object v0 invoke-static {v0}, Lcom/facebook/share/widget/ShareDialog;->access$300(Ljava/lang/Class;)Z move-result v0 if-eqz v0, :cond_2 :goto_3 move v3, v2 goto :goto_0 :cond_2 move v2, v3 goto :goto_3 :cond_3 move v1, v2 goto :goto_1 :cond_4 move v1, v2 goto :goto_2 .end method .method public bridge synthetic canShow(Ljava/lang/Object;Z)Z .locals 1 .prologue .line 291 check-cast p1, Lcom/facebook/share/model/ShareContent; invoke-virtual {p0, p1, p2}, Lcom/facebook/share/widget/ShareDialog$NativeHandler;->canShow(Lcom/facebook/share/model/ShareContent;Z)Z move-result v0 return v0 .end method .method public createAppCall(Lcom/facebook/share/model/ShareContent;)Lcom/facebook/internal/AppCall; .locals 3 .prologue .line 325 iget-object v0, p0, Lcom/facebook/share/widget/ShareDialog$NativeHandler;->this$0:Lcom/facebook/share/widget/ShareDialog; iget-object v1, p0, Lcom/facebook/share/widget/ShareDialog$NativeHandler;->this$0:Lcom/facebook/share/widget/ShareDialog; invoke-static {v1}, Lcom/facebook/share/widget/ShareDialog;->access$400(Lcom/facebook/share/widget/ShareDialog;)Landroid/app/Activity; move-result-object v1 sget-object v2, Lcom/facebook/share/widget/ShareDialog$Mode;->NATIVE:Lcom/facebook/share/widget/ShareDialog$Mode; invoke-static {v0, v1, p1, v2}, Lcom/facebook/share/widget/ShareDialog;->access$500(Lcom/facebook/share/widget/ShareDialog;Landroid/content/Context;Lcom/facebook/share/model/ShareContent;Lcom/facebook/share/widget/ShareDialog$Mode;)V .line 327 invoke-static {p1}, Lcom/facebook/share/internal/ShareContentValidation;->validateForNativeShare(Lcom/facebook/share/model/ShareContent;)V .line 329 iget-object v0, p0, Lcom/facebook/share/widget/ShareDialog$NativeHandler;->this$0:Lcom/facebook/share/widget/ShareDialog; invoke-virtual {v0}, Lcom/facebook/share/widget/ShareDialog;->createBaseAppCall()Lcom/facebook/internal/AppCall; move-result-object v0 .line 330 iget-object v1, p0, Lcom/facebook/share/widget/ShareDialog$NativeHandler;->this$0:Lcom/facebook/share/widget/ShareDialog; invoke-virtual {v1}, Lcom/facebook/share/widget/ShareDialog;->getShouldFailOnDataError()Z move-result v1 .line 332 new-instance v2, Lcom/facebook/share/widget/ShareDialog$NativeHandler$1; invoke-direct {v2, p0, v0, p1, v1}, Lcom/facebook/share/widget/ShareDialog$NativeHandler$1;->(Lcom/facebook/share/widget/ShareDialog$NativeHandler;Lcom/facebook/internal/AppCall;Lcom/facebook/share/model/ShareContent;Z)V .line 351 invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class; move-result-object v1 invoke-static {v1}, Lcom/facebook/share/widget/ShareDialog;->access$600(Ljava/lang/Class;)Lcom/facebook/internal/DialogFeature; move-result-object v1 .line 332 invoke-static {v0, v2, v1}, Lcom/facebook/internal/DialogPresenter;->setupAppCallForNativeDialog(Lcom/facebook/internal/AppCall;Lcom/facebook/internal/DialogPresenter$ParameterProvider;Lcom/facebook/internal/DialogFeature;)V .line 353 return-object v0 .end method .method public bridge synthetic createAppCall(Ljava/lang/Object;)Lcom/facebook/internal/AppCall; .locals 1 .prologue .line 291 check-cast p1, Lcom/facebook/share/model/ShareContent; invoke-virtual {p0, p1}, Lcom/facebook/share/widget/ShareDialog$NativeHandler;->createAppCall(Lcom/facebook/share/model/ShareContent;)Lcom/facebook/internal/AppCall; move-result-object v0 return-object v0 .end method .method public getMode()Ljava/lang/Object; .locals 1 .prologue .line 294 sget-object v0, Lcom/facebook/share/widget/ShareDialog$Mode;->NATIVE:Lcom/facebook/share/widget/ShareDialog$Mode; return-object v0 .end method