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.
432 lines
12 KiB
432 lines
12 KiB
.class Lcom/viatech/gallery/SendPhotoActivity$6; |
|
.super Ljava/lang/Object; |
|
.source "SendPhotoActivity.java" |
|
|
|
# interfaces |
|
.implements Lcom/viatech/util/SocialShareUtil$OnFacebookUploadCallback; |
|
|
|
|
|
# annotations |
|
.annotation system Ldalvik/annotation/EnclosingMethod; |
|
value = Lcom/viatech/gallery/SendPhotoActivity;->doUpload2Facebook()V |
|
.end annotation |
|
|
|
.annotation system Ldalvik/annotation/InnerClass; |
|
accessFlags = 0x0 |
|
name = null |
|
.end annotation |
|
|
|
|
|
# instance fields |
|
.field final synthetic this$0:Lcom/viatech/gallery/SendPhotoActivity; |
|
|
|
.field final synthetic val$bar:Landroid/widget/ProgressBar; |
|
|
|
.field final synthetic val$firstRetry:Z |
|
|
|
|
|
# direct methods |
|
.method constructor <init>(Lcom/viatech/gallery/SendPhotoActivity;ZLandroid/widget/ProgressBar;)V |
|
.locals 0 |
|
|
|
.prologue |
|
.line 387 |
|
iput-object p1, p0, Lcom/viatech/gallery/SendPhotoActivity$6;->this$0:Lcom/viatech/gallery/SendPhotoActivity; |
|
|
|
iput-boolean p2, p0, Lcom/viatech/gallery/SendPhotoActivity$6;->val$firstRetry:Z |
|
|
|
iput-object p3, p0, Lcom/viatech/gallery/SendPhotoActivity$6;->val$bar:Landroid/widget/ProgressBar; |
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V |
|
|
|
return-void |
|
.end method |
|
|
|
|
|
# virtual methods |
|
.method public onFailure(ILjava/lang/String;)V |
|
.locals 5 |
|
|
|
.prologue |
|
const v0, 0x7f0700fb |
|
|
|
.line 390 |
|
invoke-static {}, Lcom/viatech/gallery/SendPhotoActivity;->access$400()Ljava/lang/String; |
|
|
|
move-result-object v1 |
|
|
|
new-instance v2, Ljava/lang/StringBuilder; |
|
|
|
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V |
|
|
|
const-string v3, "onFailure, errCode: " |
|
|
|
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v2 |
|
|
|
invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v2 |
|
|
|
const-string v3, ", err: " |
|
|
|
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v2 |
|
|
|
invoke-virtual {v2, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v2 |
|
|
|
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; |
|
|
|
move-result-object v2 |
|
|
|
invoke-static {v1, v2}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I |
|
|
|
.line 391 |
|
const-string v1, "" |
|
|
|
.line 392 |
|
packed-switch p1, :pswitch_data_0 |
|
|
|
.line 407 |
|
iget-object v0, p0, Lcom/viatech/gallery/SendPhotoActivity$6;->this$0:Lcom/viatech/gallery/SendPhotoActivity; |
|
|
|
const v1, 0x7f07009c |
|
|
|
invoke-virtual {v0, v1}, Lcom/viatech/gallery/SendPhotoActivity;->getString(I)Ljava/lang/String; |
|
|
|
move-result-object v0 |
|
|
|
.line 410 |
|
:goto_0 |
|
iget-boolean v1, p0, Lcom/viatech/gallery/SendPhotoActivity$6;->val$firstRetry:Z |
|
|
|
if-eqz v1, :cond_2 |
|
|
|
.line 411 |
|
iget-object v1, p0, Lcom/viatech/gallery/SendPhotoActivity$6;->this$0:Lcom/viatech/gallery/SendPhotoActivity; |
|
|
|
invoke-static {v1}, Lcom/viatech/gallery/SendPhotoActivity;->access$000(Lcom/viatech/gallery/SendPhotoActivity;)Lcom/afollestad/materialdialogs/f; |
|
|
|
move-result-object v1 |
|
|
|
invoke-virtual {v1, v0}, Lcom/afollestad/materialdialogs/f;->a(Ljava/lang/CharSequence;)V |
|
|
|
.line 418 |
|
:goto_1 |
|
return-void |
|
|
|
.line 394 |
|
:pswitch_0 |
|
iget-object v0, p0, Lcom/viatech/gallery/SendPhotoActivity$6;->this$0:Lcom/viatech/gallery/SendPhotoActivity; |
|
|
|
const v1, 0x7f07012a |
|
|
|
invoke-virtual {v0, v1}, Lcom/viatech/gallery/SendPhotoActivity;->getString(I)Ljava/lang/String; |
|
|
|
move-result-object v0 |
|
|
|
goto :goto_0 |
|
|
|
.line 397 |
|
:pswitch_1 |
|
iget-object v1, p0, Lcom/viatech/gallery/SendPhotoActivity$6;->this$0:Lcom/viatech/gallery/SendPhotoActivity; |
|
|
|
iget-boolean v2, p0, Lcom/viatech/gallery/SendPhotoActivity$6;->val$firstRetry:Z |
|
|
|
if-eqz v2, :cond_0 |
|
|
|
const v0, 0x7f0700d3 |
|
|
|
:cond_0 |
|
invoke-virtual {v1, v0}, Lcom/viatech/gallery/SendPhotoActivity;->getString(I)Ljava/lang/String; |
|
|
|
move-result-object v0 |
|
|
|
goto :goto_0 |
|
|
|
.line 400 |
|
:pswitch_2 |
|
iget-object v1, p0, Lcom/viatech/gallery/SendPhotoActivity$6;->this$0:Lcom/viatech/gallery/SendPhotoActivity; |
|
|
|
iget-boolean v2, p0, Lcom/viatech/gallery/SendPhotoActivity$6;->val$firstRetry:Z |
|
|
|
if-eqz v2, :cond_1 |
|
|
|
const v0, 0x7f0700a7 |
|
|
|
:cond_1 |
|
invoke-virtual {v1, v0}, Lcom/viatech/gallery/SendPhotoActivity;->getString(I)Ljava/lang/String; |
|
|
|
move-result-object v0 |
|
|
|
goto :goto_0 |
|
|
|
.line 403 |
|
:pswitch_3 |
|
iget-object v0, p0, Lcom/viatech/gallery/SendPhotoActivity$6;->this$0:Lcom/viatech/gallery/SendPhotoActivity; |
|
|
|
const v1, 0x7f070099 |
|
|
|
invoke-virtual {v0, v1}, Lcom/viatech/gallery/SendPhotoActivity;->getString(I)Ljava/lang/String; |
|
|
|
move-result-object v0 |
|
|
|
goto :goto_0 |
|
|
|
.line 413 |
|
:cond_2 |
|
iget-object v1, p0, Lcom/viatech/gallery/SendPhotoActivity$6;->this$0:Lcom/viatech/gallery/SendPhotoActivity; |
|
|
|
invoke-static {v1}, Lcom/viatech/gallery/SendPhotoActivity;->access$000(Lcom/viatech/gallery/SendPhotoActivity;)Lcom/afollestad/materialdialogs/f; |
|
|
|
move-result-object v1 |
|
|
|
invoke-virtual {v1}, Lcom/afollestad/materialdialogs/f;->dismiss()V |
|
|
|
.line 414 |
|
iget-object v1, p0, Lcom/viatech/gallery/SendPhotoActivity$6;->this$0:Lcom/viatech/gallery/SendPhotoActivity; |
|
|
|
const/4 v2, 0x0 |
|
|
|
invoke-static {v1, v2}, Lcom/viatech/gallery/SendPhotoActivity;->access$002(Lcom/viatech/gallery/SendPhotoActivity;Lcom/afollestad/materialdialogs/f;)Lcom/afollestad/materialdialogs/f; |
|
|
|
.line 415 |
|
sget-object v1, Lcom/viatech/VPaiApplication;->b:Lcom/viatech/widget/VPaiToast; |
|
|
|
new-instance v2, Ljava/lang/StringBuilder; |
|
|
|
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V |
|
|
|
iget-object v3, p0, Lcom/viatech/gallery/SendPhotoActivity$6;->this$0:Lcom/viatech/gallery/SendPhotoActivity; |
|
|
|
const v4, 0x7f070177 |
|
|
|
invoke-virtual {v3, v4}, Lcom/viatech/gallery/SendPhotoActivity;->getString(I)Ljava/lang/String; |
|
|
|
move-result-object v3 |
|
|
|
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v2 |
|
|
|
const-string v3, "\n" |
|
|
|
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v2 |
|
|
|
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v0 |
|
|
|
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; |
|
|
|
move-result-object v0 |
|
|
|
invoke-virtual {v1, v0}, Lcom/viatech/widget/VPaiToast;->show(Ljava/lang/String;)V |
|
|
|
.line 416 |
|
iget-object v0, p0, Lcom/viatech/gallery/SendPhotoActivity$6;->this$0:Lcom/viatech/gallery/SendPhotoActivity; |
|
|
|
invoke-virtual {v0}, Lcom/viatech/gallery/SendPhotoActivity;->finish()V |
|
|
|
goto :goto_1 |
|
|
|
.line 392 |
|
nop |
|
|
|
:pswitch_data_0 |
|
.packed-switch -0x4 |
|
:pswitch_3 |
|
:pswitch_2 |
|
:pswitch_1 |
|
:pswitch_0 |
|
.end packed-switch |
|
.end method |
|
|
|
.method public onProgress(JJ)V |
|
.locals 5 |
|
|
|
.prologue |
|
.line 430 |
|
invoke-static {}, Lcom/viatech/gallery/SendPhotoActivity;->access$400()Ljava/lang/String; |
|
|
|
move-result-object v0 |
|
|
|
new-instance v1, Ljava/lang/StringBuilder; |
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V |
|
|
|
const-string v2, "onProgress, current: " |
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v1 |
|
|
|
invoke-virtual {v1, p1, p2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v1 |
|
|
|
const-string v2, ", max: " |
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v1 |
|
|
|
invoke-virtual {v1, p3, p4}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder; |
|
|
|
move-result-object v1 |
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; |
|
|
|
move-result-object v1 |
|
|
|
invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I |
|
|
|
.line 431 |
|
iget-object v0, p0, Lcom/viatech/gallery/SendPhotoActivity$6;->this$0:Lcom/viatech/gallery/SendPhotoActivity; |
|
|
|
invoke-static {v0}, Lcom/viatech/gallery/SendPhotoActivity;->access$000(Lcom/viatech/gallery/SendPhotoActivity;)Lcom/afollestad/materialdialogs/f; |
|
|
|
move-result-object v0 |
|
|
|
if-eqz v0, :cond_1 |
|
|
|
.line 432 |
|
iget-object v0, p0, Lcom/viatech/gallery/SendPhotoActivity$6;->val$bar:Landroid/widget/ProgressBar; |
|
|
|
const/4 v1, 0x0 |
|
|
|
invoke-virtual {v0, v1}, Landroid/widget/ProgressBar;->setVisibility(I)V |
|
|
|
.line 433 |
|
const-wide/16 v0, 0x64 |
|
|
|
mul-long/2addr v0, p1 |
|
|
|
div-long/2addr v0, p3 |
|
|
|
long-to-int v0, v0 |
|
|
|
.line 434 |
|
new-instance v1, Ljava/lang/StringBuilder; |
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V |
|
|
|
iget-object v2, p0, Lcom/viatech/gallery/SendPhotoActivity$6;->this$0:Lcom/viatech/gallery/SendPhotoActivity; |
|
|
|
const v3, 0x7f0701c6 |
|
|
|
invoke-virtual {v2, v3}, Lcom/viatech/gallery/SendPhotoActivity;->getString(I)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 |
|
|
|
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(I)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 |
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; |
|
|
|
move-result-object v1 |
|
|
|
.line 435 |
|
iget-object v2, p0, Lcom/viatech/gallery/SendPhotoActivity$6;->this$0:Lcom/viatech/gallery/SendPhotoActivity; |
|
|
|
invoke-static {v2}, Lcom/viatech/gallery/SendPhotoActivity;->access$000(Lcom/viatech/gallery/SendPhotoActivity;)Lcom/afollestad/materialdialogs/f; |
|
|
|
move-result-object v2 |
|
|
|
invoke-virtual {v2, v1}, Lcom/afollestad/materialdialogs/f;->a(Ljava/lang/CharSequence;)V |
|
|
|
.line 436 |
|
const/16 v1, 0x64 |
|
|
|
if-ne v0, v1, :cond_0 |
|
|
|
.line 437 |
|
iget-object v0, p0, Lcom/viatech/gallery/SendPhotoActivity$6;->this$0:Lcom/viatech/gallery/SendPhotoActivity; |
|
|
|
invoke-static {v0}, Lcom/viatech/gallery/SendPhotoActivity;->access$000(Lcom/viatech/gallery/SendPhotoActivity;)Lcom/afollestad/materialdialogs/f; |
|
|
|
move-result-object v0 |
|
|
|
iget-object v1, p0, Lcom/viatech/gallery/SendPhotoActivity$6;->this$0:Lcom/viatech/gallery/SendPhotoActivity; |
|
|
|
const v2, 0x7f0701c9 |
|
|
|
invoke-virtual {v1, v2}, Lcom/viatech/gallery/SendPhotoActivity;->getString(I)Ljava/lang/String; |
|
|
|
move-result-object v1 |
|
|
|
invoke-virtual {v0, v1}, Lcom/afollestad/materialdialogs/f;->a(Ljava/lang/CharSequence;)V |
|
|
|
.line 439 |
|
:cond_0 |
|
iget-object v0, p0, Lcom/viatech/gallery/SendPhotoActivity$6;->this$0:Lcom/viatech/gallery/SendPhotoActivity; |
|
|
|
invoke-static {v0}, Lcom/viatech/gallery/SendPhotoActivity;->access$000(Lcom/viatech/gallery/SendPhotoActivity;)Lcom/afollestad/materialdialogs/f; |
|
|
|
move-result-object v0 |
|
|
|
invoke-virtual {v0}, Lcom/afollestad/materialdialogs/f;->show()V |
|
|
|
.line 441 |
|
:cond_1 |
|
return-void |
|
.end method |
|
|
|
.method public onSuccess()V |
|
.locals 2 |
|
|
|
.prologue |
|
.line 422 |
|
invoke-static {}, Lcom/viatech/gallery/SendPhotoActivity;->access$400()Ljava/lang/String; |
|
|
|
move-result-object v0 |
|
|
|
const-string v1, "onSuccess" |
|
|
|
invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I |
|
|
|
.line 423 |
|
iget-object v0, p0, Lcom/viatech/gallery/SendPhotoActivity$6;->this$0:Lcom/viatech/gallery/SendPhotoActivity; |
|
|
|
invoke-static {v0}, Lcom/viatech/gallery/SendPhotoActivity;->access$000(Lcom/viatech/gallery/SendPhotoActivity;)Lcom/afollestad/materialdialogs/f; |
|
|
|
move-result-object v0 |
|
|
|
invoke-virtual {v0}, Lcom/afollestad/materialdialogs/f;->dismiss()V |
|
|
|
.line 424 |
|
const v0, 0x7f07017e |
|
|
|
invoke-static {v0}, Lcom/viatech/VPaiApplication;->b(I)V |
|
|
|
.line 425 |
|
iget-object v0, p0, Lcom/viatech/gallery/SendPhotoActivity$6;->this$0:Lcom/viatech/gallery/SendPhotoActivity; |
|
|
|
invoke-virtual {v0}, Lcom/viatech/gallery/SendPhotoActivity;->finish()V |
|
|
|
.line 426 |
|
return-void |
|
.end method
|
|
|