You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
184 lines
5.2 KiB
184 lines
5.2 KiB
.class Lcom/facebook/share/ShareApi$3; |
|
.super Ljava/lang/Object; |
|
.source "ShareApi.java" |
|
|
|
# interfaces |
|
.implements Lcom/facebook/GraphRequest$Callback; |
|
|
|
|
|
# annotations |
|
.annotation system Ldalvik/annotation/EnclosingMethod; |
|
value = Lcom/facebook/share/ShareApi;->sharePhotoContent(Lcom/facebook/share/model/SharePhotoContent;Lcom/facebook/FacebookCallback;)V |
|
.end annotation |
|
|
|
.annotation system Ldalvik/annotation/InnerClass; |
|
accessFlags = 0x0 |
|
name = null |
|
.end annotation |
|
|
|
|
|
# instance fields |
|
.field final synthetic this$0:Lcom/facebook/share/ShareApi; |
|
|
|
.field final synthetic val$callback:Lcom/facebook/FacebookCallback; |
|
|
|
.field final synthetic val$errorResponses:Ljava/util/ArrayList; |
|
|
|
.field final synthetic val$requestCount:Lcom/facebook/internal/Mutable; |
|
|
|
.field final synthetic val$results:Ljava/util/ArrayList; |
|
|
|
|
|
# direct methods |
|
.method constructor <init>(Lcom/facebook/share/ShareApi;Ljava/util/ArrayList;Ljava/util/ArrayList;Lcom/facebook/internal/Mutable;Lcom/facebook/FacebookCallback;)V |
|
.locals 0 |
|
|
|
.prologue |
|
.line 324 |
|
iput-object p1, p0, Lcom/facebook/share/ShareApi$3;->this$0:Lcom/facebook/share/ShareApi; |
|
|
|
iput-object p2, p0, Lcom/facebook/share/ShareApi$3;->val$results:Ljava/util/ArrayList; |
|
|
|
iput-object p3, p0, Lcom/facebook/share/ShareApi$3;->val$errorResponses:Ljava/util/ArrayList; |
|
|
|
iput-object p4, p0, Lcom/facebook/share/ShareApi$3;->val$requestCount:Lcom/facebook/internal/Mutable; |
|
|
|
iput-object p5, p0, Lcom/facebook/share/ShareApi$3;->val$callback:Lcom/facebook/FacebookCallback; |
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V |
|
|
|
return-void |
|
.end method |
|
|
|
|
|
# virtual methods |
|
.method public onCompleted(Lcom/facebook/GraphResponse;)V |
|
.locals 4 |
|
|
|
.prologue |
|
const/4 v3, 0x0 |
|
|
|
.line 327 |
|
invoke-virtual {p1}, Lcom/facebook/GraphResponse;->getJSONObject()Lorg/json/JSONObject; |
|
|
|
move-result-object v0 |
|
|
|
.line 328 |
|
if-eqz v0, :cond_0 |
|
|
|
.line 329 |
|
iget-object v1, p0, Lcom/facebook/share/ShareApi$3;->val$results:Ljava/util/ArrayList; |
|
|
|
invoke-virtual {v1, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z |
|
|
|
.line 331 |
|
:cond_0 |
|
invoke-virtual {p1}, Lcom/facebook/GraphResponse;->getError()Lcom/facebook/FacebookRequestError; |
|
|
|
move-result-object v0 |
|
|
|
if-eqz v0, :cond_1 |
|
|
|
.line 332 |
|
iget-object v0, p0, Lcom/facebook/share/ShareApi$3;->val$errorResponses:Ljava/util/ArrayList; |
|
|
|
invoke-virtual {v0, p1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z |
|
|
|
.line 334 |
|
:cond_1 |
|
iget-object v1, p0, Lcom/facebook/share/ShareApi$3;->val$requestCount:Lcom/facebook/internal/Mutable; |
|
|
|
iget-object v0, p0, Lcom/facebook/share/ShareApi$3;->val$requestCount:Lcom/facebook/internal/Mutable; |
|
|
|
iget-object v0, v0, Lcom/facebook/internal/Mutable;->value:Ljava/lang/Object; |
|
|
|
check-cast v0, Ljava/lang/Integer; |
|
|
|
invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I |
|
|
|
move-result v0 |
|
|
|
add-int/lit8 v0, v0, -0x1 |
|
|
|
invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; |
|
|
|
move-result-object v0 |
|
|
|
iput-object v0, v1, Lcom/facebook/internal/Mutable;->value:Ljava/lang/Object; |
|
|
|
.line 335 |
|
iget-object v0, p0, Lcom/facebook/share/ShareApi$3;->val$requestCount:Lcom/facebook/internal/Mutable; |
|
|
|
iget-object v0, v0, Lcom/facebook/internal/Mutable;->value:Ljava/lang/Object; |
|
|
|
check-cast v0, Ljava/lang/Integer; |
|
|
|
invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I |
|
|
|
move-result v0 |
|
|
|
if-nez v0, :cond_2 |
|
|
|
.line 336 |
|
iget-object v0, p0, Lcom/facebook/share/ShareApi$3;->val$errorResponses:Ljava/util/ArrayList; |
|
|
|
invoke-virtual {v0}, Ljava/util/ArrayList;->isEmpty()Z |
|
|
|
move-result v0 |
|
|
|
if-nez v0, :cond_3 |
|
|
|
.line 337 |
|
iget-object v1, p0, Lcom/facebook/share/ShareApi$3;->val$callback:Lcom/facebook/FacebookCallback; |
|
|
|
const/4 v2, 0x0 |
|
|
|
iget-object v0, p0, Lcom/facebook/share/ShareApi$3;->val$errorResponses:Ljava/util/ArrayList; |
|
|
|
.line 340 |
|
invoke-virtual {v0, v3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, Lcom/facebook/GraphResponse; |
|
|
|
.line 337 |
|
invoke-static {v1, v2, v0}, Lcom/facebook/share/internal/ShareInternalUtility;->invokeCallbackWithResults(Lcom/facebook/FacebookCallback;Ljava/lang/String;Lcom/facebook/GraphResponse;)V |
|
|
|
.line 349 |
|
:cond_2 |
|
:goto_0 |
|
return-void |
|
|
|
.line 341 |
|
:cond_3 |
|
iget-object v0, p0, Lcom/facebook/share/ShareApi$3;->val$results:Ljava/util/ArrayList; |
|
|
|
invoke-virtual {v0}, Ljava/util/ArrayList;->isEmpty()Z |
|
|
|
move-result v0 |
|
|
|
if-nez v0, :cond_2 |
|
|
|
.line 342 |
|
iget-object v0, p0, Lcom/facebook/share/ShareApi$3;->val$results:Ljava/util/ArrayList; |
|
|
|
invoke-virtual {v0, v3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object; |
|
|
|
move-result-object v0 |
|
|
|
check-cast v0, Lorg/json/JSONObject; |
|
|
|
const-string v1, "id" |
|
|
|
invoke-virtual {v0, v1}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String; |
|
|
|
move-result-object v0 |
|
|
|
.line 343 |
|
iget-object v1, p0, Lcom/facebook/share/ShareApi$3;->val$callback:Lcom/facebook/FacebookCallback; |
|
|
|
invoke-static {v1, v0, p1}, Lcom/facebook/share/internal/ShareInternalUtility;->invokeCallbackWithResults(Lcom/facebook/FacebookCallback;Ljava/lang/String;Lcom/facebook/GraphResponse;)V |
|
|
|
goto :goto_0 |
|
.end method
|
|
|