144 lines
3.7 KiB
Smali
144 lines
3.7 KiB
Smali
.class Lcom/moji/postcard/ui/DownloadPictureActitivy$2;
|
|
.super Lcom/moji/requestcore/MJHttpCallback;
|
|
.source "DownloadPictureActitivy.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/moji/postcard/ui/DownloadPictureActitivy;->d()V
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x0
|
|
name = null
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lcom/moji/requestcore/MJHttpCallback<",
|
|
"Lcom/moji/http/postcard/entity/ConfigInformationResult;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field final synthetic a:Lcom/moji/postcard/ui/DownloadPictureActitivy;
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>(Lcom/moji/postcard/ui/DownloadPictureActitivy;)V
|
|
.locals 0
|
|
|
|
.line 128
|
|
iput-object p1, p0, Lcom/moji/postcard/ui/DownloadPictureActitivy$2;->a:Lcom/moji/postcard/ui/DownloadPictureActitivy;
|
|
|
|
invoke-direct {p0}, Lcom/moji/requestcore/MJHttpCallback;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private a(Ljava/lang/String;)V
|
|
.locals 1
|
|
|
|
.line 153
|
|
invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result v0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
.line 154
|
|
invoke-static {p1}, Lcom/moji/tool/ToastTool;->a(Ljava/lang/String;)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method protected a(Lcom/moji/http/postcard/entity/ConfigInformationResult;)V
|
|
.locals 2
|
|
|
|
.line 132
|
|
invoke-super {p0, p1}, Lcom/moji/requestcore/MJHttpCallback;->onConvertNotUI(Ljava/lang/Object;)V
|
|
|
|
.line 133
|
|
invoke-static {}, Lcom/moji/preferences/PostCardPrefer;->c()Lcom/moji/preferences/PostCardPrefer;
|
|
|
|
move-result-object v0
|
|
|
|
.line 134
|
|
iget v1, p1, Lcom/moji/http/postcard/entity/ConfigInformationResult;->picture_size_threshold:I
|
|
|
|
invoke-virtual {v0, v1}, Lcom/moji/preferences/PostCardPrefer;->a(I)V
|
|
|
|
.line 135
|
|
iget p1, p1, Lcom/moji/http/postcard/entity/ConfigInformationResult;->total_fee:I
|
|
|
|
invoke-virtual {v0, p1}, Lcom/moji/preferences/PostCardPrefer;->b(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method protected b(Lcom/moji/http/postcard/entity/ConfigInformationResult;)V
|
|
.locals 1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
.line 140
|
|
invoke-virtual {p1}, Lcom/moji/http/postcard/entity/ConfigInformationResult;->OK()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
.line 143
|
|
:cond_0
|
|
invoke-virtual {p1}, Lcom/moji/http/postcard/entity/ConfigInformationResult;->getDesc()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {p0, p1}, Lcom/moji/postcard/ui/DownloadPictureActitivy$2;->a(Ljava/lang/String;)V
|
|
|
|
:goto_0
|
|
return-void
|
|
.end method
|
|
|
|
.method protected synthetic onConvertNotUI(Ljava/lang/Object;)V
|
|
.locals 0
|
|
|
|
.line 128
|
|
check-cast p1, Lcom/moji/http/postcard/entity/ConfigInformationResult;
|
|
|
|
invoke-virtual {p0, p1}, Lcom/moji/postcard/ui/DownloadPictureActitivy$2;->a(Lcom/moji/http/postcard/entity/ConfigInformationResult;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method protected onFailed(Lcom/moji/requestcore/MJException;)V
|
|
.locals 0
|
|
|
|
.line 149
|
|
invoke-virtual {p1}, Lcom/moji/requestcore/MJException;->getMessage()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-direct {p0, p1}, Lcom/moji/postcard/ui/DownloadPictureActitivy$2;->a(Ljava/lang/String;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method protected synthetic onSuccess(Ljava/lang/Object;)V
|
|
.locals 0
|
|
|
|
.line 128
|
|
check-cast p1, Lcom/moji/http/postcard/entity/ConfigInformationResult;
|
|
|
|
invoke-virtual {p0, p1}, Lcom/moji/postcard/ui/DownloadPictureActitivy$2;->b(Lcom/moji/http/postcard/entity/ConfigInformationResult;)V
|
|
|
|
return-void
|
|
.end method
|