158 lines
3.8 KiB
Smali
158 lines
3.8 KiB
Smali
.class public Lcom/moji/preferences/PostCardPrefer;
|
|
.super Lcom/moji/tool/preferences/core/BasePreferences;
|
|
.source "PostCardPrefer.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/moji/preferences/PostCardPrefer$KeyConstant;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field private static a:Landroid/content/Context;
|
|
|
|
.field private static b:Lcom/moji/preferences/PostCardPrefer;
|
|
|
|
|
|
# direct methods
|
|
.method static constructor <clinit>()V
|
|
.locals 1
|
|
|
|
.line 18
|
|
invoke-static {}, Lcom/moji/tool/AppDelegate;->a()Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
sput-object v0, Lcom/moji/preferences/PostCardPrefer;->a:Landroid/content/Context;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method protected constructor <init>()V
|
|
.locals 1
|
|
|
|
.line 22
|
|
sget-object v0, Lcom/moji/preferences/PostCardPrefer;->a:Landroid/content/Context;
|
|
|
|
invoke-direct {p0, v0}, Lcom/moji/tool/preferences/core/BasePreferences;-><init>(Landroid/content/Context;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static declared-synchronized c()Lcom/moji/preferences/PostCardPrefer;
|
|
.locals 2
|
|
|
|
const-class v0, Lcom/moji/preferences/PostCardPrefer;
|
|
|
|
monitor-enter v0
|
|
|
|
.line 26
|
|
:try_start_0
|
|
sget-object v1, Lcom/moji/preferences/PostCardPrefer;->b:Lcom/moji/preferences/PostCardPrefer;
|
|
|
|
if-nez v1, :cond_0
|
|
|
|
.line 27
|
|
new-instance v1, Lcom/moji/preferences/PostCardPrefer;
|
|
|
|
invoke-direct {v1}, Lcom/moji/preferences/PostCardPrefer;-><init>()V
|
|
|
|
sput-object v1, Lcom/moji/preferences/PostCardPrefer;->b:Lcom/moji/preferences/PostCardPrefer;
|
|
|
|
.line 29
|
|
:cond_0
|
|
sget-object v1, Lcom/moji/preferences/PostCardPrefer;->b:Lcom/moji/preferences/PostCardPrefer;
|
|
:try_end_0
|
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
|
|
|
monitor-exit v0
|
|
|
|
return-object v1
|
|
|
|
:catchall_0
|
|
move-exception v1
|
|
|
|
.line 25
|
|
monitor-exit v0
|
|
|
|
throw v1
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a()Ljava/lang/String;
|
|
.locals 1
|
|
|
|
.line 34
|
|
sget-object v0, Lcom/moji/preferences/PreferenceNameEnum;->POSTCARD_PREFERENCE:Lcom/moji/preferences/PreferenceNameEnum;
|
|
|
|
invoke-virtual {v0}, Lcom/moji/preferences/PreferenceNameEnum;->name()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public a(I)V
|
|
.locals 1
|
|
|
|
.line 48
|
|
sget-object v0, Lcom/moji/preferences/PostCardPrefer$KeyConstant;->POSTCARD_PICTURE_SIZE:Lcom/moji/preferences/PostCardPrefer$KeyConstant;
|
|
|
|
invoke-virtual {p0, v0, p1}, Lcom/moji/preferences/PostCardPrefer;->b(Lcom/moji/tool/preferences/core/IPreferKey;I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public b()I
|
|
.locals 1
|
|
|
|
const/4 v0, 0x0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public b(I)V
|
|
.locals 1
|
|
|
|
.line 52
|
|
sget-object v0, Lcom/moji/preferences/PostCardPrefer$KeyConstant;->POSTCARD_TOTAL_FEE:Lcom/moji/preferences/PostCardPrefer$KeyConstant;
|
|
|
|
invoke-virtual {p0, v0, p1}, Lcom/moji/preferences/PostCardPrefer;->b(Lcom/moji/tool/preferences/core/IPreferKey;I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public d()I
|
|
.locals 2
|
|
|
|
.line 56
|
|
sget-object v0, Lcom/moji/preferences/PostCardPrefer$KeyConstant;->POSTCARD_PICTURE_SIZE:Lcom/moji/preferences/PostCardPrefer$KeyConstant;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-virtual {p0, v0, v1}, Lcom/moji/preferences/PostCardPrefer;->a(Lcom/moji/tool/preferences/core/IPreferKey;I)I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public e()I
|
|
.locals 2
|
|
|
|
.line 60
|
|
sget-object v0, Lcom/moji/preferences/PostCardPrefer$KeyConstant;->POSTCARD_TOTAL_FEE:Lcom/moji/preferences/PostCardPrefer$KeyConstant;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-virtual {p0, v0, v1}, Lcom/moji/preferences/PostCardPrefer;->a(Lcom/moji/tool/preferences/core/IPreferKey;I)I
|
|
|
|
move-result v0
|
|
|
|
return v0
|
|
.end method
|