今奥全景相机
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.

185 lines
5.0 KiB

.class Lcom/viatech/cloud/CloudView$3;
.super Ljava/lang/Object;
.source "CloudView.java"
# interfaces
.implements Lcom/facebook/GraphRequest$GraphJSONObjectCallback;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/viatech/cloud/CloudView;->updateFBLiveStatus(Lcom/facebook/login/LoginResult;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
# instance fields
.field final synthetic this$0:Lcom/viatech/cloud/CloudView;
# direct methods
.method constructor <init>(Lcom/viatech/cloud/CloudView;)V
.locals 0
.prologue
.line 167
iput-object p1, p0, Lcom/viatech/cloud/CloudView$3;->this$0:Lcom/viatech/cloud/CloudView;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public onCompleted(Lorg/json/JSONObject;Lcom/facebook/GraphResponse;)V
.locals 8
.prologue
const/16 v7, 0x96
const/4 v6, 0x0
.line 171
if-eqz p1, :cond_1
.line 172
const-string v0, "id"
invoke-virtual {p1, v0, v6}, Lorg/json/JSONObject;->optString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object v1
.line 173
const-string v0, "first_name"
invoke-virtual {p1, v0, v6}, Lorg/json/JSONObject;->optString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object v2
.line 174
const-string v0, "middle_name"
invoke-virtual {p1, v0, v6}, Lorg/json/JSONObject;->optString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object v3
.line 175
const-string v0, "last_name"
invoke-virtual {p1, v0, v6}, Lorg/json/JSONObject;->optString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object v4
.line 176
const-string v0, "name"
invoke-virtual {p1, v0, v6}, Lorg/json/JSONObject;->optString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object v5
.line 177
const-string v0, "link"
invoke-virtual {p1, v0, v6}, Lorg/json/JSONObject;->optString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object v6
.line 179
if-eqz v1, :cond_1
if-eqz v5, :cond_1
.line 180
new-instance v0, Lcom/facebook/Profile;
invoke-static {v6}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;
move-result-object v6
invoke-direct/range {v0 .. v6}, Lcom/facebook/Profile;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Landroid/net/Uri;)V
.line 181
invoke-static {v0}, Lcom/facebook/Profile;->setCurrentProfile(Lcom/facebook/Profile;)V
.line 182
invoke-static {}, Lcom/viatech/cloud/CloudConfig;->curUser()Lcom/viatech/cloud/CloudConfig$LoginUser;
move-result-object v2
.line 183
iget-object v3, p0, Lcom/viatech/cloud/CloudView$3;->this$0:Lcom/viatech/cloud/CloudView;
invoke-static {v3}, Lcom/viatech/cloud/CloudView;->access$500(Lcom/viatech/cloud/CloudView;)Z
move-result v3
if-nez v3, :cond_0
.line 184
invoke-virtual {v2}, Lcom/viatech/cloud/CloudConfig$LoginUser;->reset()V
.line 185
const-string v3, ""
iput-object v3, v2, Lcom/viatech/cloud/CloudConfig$LoginUser;->openid:Ljava/lang/String;
.line 186
invoke-virtual {v0}, Lcom/facebook/Profile;->getName()Ljava/lang/String;
move-result-object v3
iput-object v3, v2, Lcom/viatech/cloud/CloudConfig$LoginUser;->nickname:Ljava/lang/String;
.line 187
iput-object v1, v2, Lcom/viatech/cloud/CloudConfig$LoginUser;->unionid:Ljava/lang/String;
.line 188
invoke-virtual {v0, v7, v7}, Lcom/facebook/Profile;->getProfilePictureUri(II)Landroid/net/Uri;
move-result-object v0
invoke-virtual {v0}, Landroid/net/Uri;->toString()Ljava/lang/String;
move-result-object v0
iput-object v0, v2, Lcom/viatech/cloud/CloudConfig$LoginUser;->imageurl:Ljava/lang/String;
.line 189
invoke-virtual {v2}, Lcom/viatech/cloud/CloudConfig$LoginUser;->save()V
.line 191
:cond_0
iget-object v0, p0, Lcom/viatech/cloud/CloudView$3;->this$0:Lcom/viatech/cloud/CloudView;
iget-object v0, v0, Lcom/viatech/cloud/CloudView;->mHandler:Landroid/os/Handler;
new-instance v1, Lcom/viatech/cloud/CloudView$3$1;
invoke-direct {v1, p0}, Lcom/viatech/cloud/CloudView$3$1;-><init>(Lcom/viatech/cloud/CloudView$3;)V
invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z
.line 212
:goto_0
return-void
.line 203
:cond_1
iget-object v0, p0, Lcom/viatech/cloud/CloudView$3;->this$0:Lcom/viatech/cloud/CloudView;
iget-object v0, v0, Lcom/viatech/cloud/CloudView;->mHandler:Landroid/os/Handler;
new-instance v1, Lcom/viatech/cloud/CloudView$3$2;
invoke-direct {v1, p0}, Lcom/viatech/cloud/CloudView$3$2;-><init>(Lcom/viatech/cloud/CloudView$3;)V
invoke-virtual {v0, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z
goto :goto_0
.end method