228 lines
4.3 KiB
Smali
228 lines
4.3 KiB
Smali
.class public Lcom/moji/mjallergy/AllergyHelper;
|
|
.super Ljava/lang/Object;
|
|
.source "AllergyHelper.java"
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 17
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static a(I)Ljava/lang/String;
|
|
.locals 0
|
|
|
|
packed-switch p0, :pswitch_data_0
|
|
|
|
const-string p0, ""
|
|
|
|
return-object p0
|
|
|
|
:pswitch_0
|
|
const-string p0, "\u6781\u6613\u53d1"
|
|
|
|
return-object p0
|
|
|
|
:pswitch_1
|
|
const-string p0, "\u6613\u53d1"
|
|
|
|
return-object p0
|
|
|
|
:pswitch_2
|
|
const-string p0, "\u8f83\u6613\u53d1"
|
|
|
|
return-object p0
|
|
|
|
:pswitch_3
|
|
const-string p0, "\u4e0d\u6613\u53d1"
|
|
|
|
return-object p0
|
|
|
|
:pswitch_data_0
|
|
.packed-switch 0x1
|
|
:pswitch_3
|
|
:pswitch_2
|
|
:pswitch_1
|
|
:pswitch_0
|
|
.end packed-switch
|
|
.end method
|
|
|
|
.method public static a(J)Ljava/lang/String;
|
|
.locals 3
|
|
|
|
.line 86
|
|
invoke-static {}, Lcom/moji/tool/AppDelegate;->a()Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v0
|
|
|
|
sget v1, Lpad/aqi/cnemc/com/mjallergymodule/R$array;->week_array:I
|
|
|
|
invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getStringArray(I)[Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
.line 87
|
|
invoke-static {}, Ljava/util/Calendar;->getInstance()Ljava/util/Calendar;
|
|
|
|
move-result-object v1
|
|
|
|
.line 88
|
|
new-instance v2, Ljava/util/Date;
|
|
|
|
invoke-direct {v2, p0, p1}, Ljava/util/Date;-><init>(J)V
|
|
|
|
.line 89
|
|
invoke-virtual {v1, v2}, Ljava/util/Calendar;->setTime(Ljava/util/Date;)V
|
|
|
|
const/4 p0, 0x7
|
|
|
|
.line 90
|
|
invoke-virtual {v1, p0}, Ljava/util/Calendar;->get(I)I
|
|
|
|
move-result p0
|
|
|
|
add-int/lit8 p0, p0, -0x1
|
|
|
|
if-gez p0, :cond_0
|
|
|
|
const/4 p0, 0x0
|
|
|
|
.line 92
|
|
:cond_0
|
|
aget-object p0, v0, p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static b(I)I
|
|
.locals 0
|
|
.annotation build Landroid/support/annotation/DrawableRes;
|
|
.end annotation
|
|
|
|
packed-switch p0, :pswitch_data_0
|
|
|
|
.line 60
|
|
sget p0, Lpad/aqi/cnemc/com/mjallergymodule/R$drawable;->icon_allergy_bu_yifa:I
|
|
|
|
return p0
|
|
|
|
.line 58
|
|
:pswitch_0
|
|
sget p0, Lpad/aqi/cnemc/com/mjallergymodule/R$drawable;->icon_allergy_ji_yifa:I
|
|
|
|
return p0
|
|
|
|
.line 56
|
|
:pswitch_1
|
|
sget p0, Lpad/aqi/cnemc/com/mjallergymodule/R$drawable;->icon_allergy_yifa:I
|
|
|
|
return p0
|
|
|
|
.line 54
|
|
:pswitch_2
|
|
sget p0, Lpad/aqi/cnemc/com/mjallergymodule/R$drawable;->icon_allergy_jiao_yifa:I
|
|
|
|
return p0
|
|
|
|
.line 52
|
|
:pswitch_3
|
|
sget p0, Lpad/aqi/cnemc/com/mjallergymodule/R$drawable;->icon_allergy_bu_yifa:I
|
|
|
|
return p0
|
|
|
|
:pswitch_data_0
|
|
.packed-switch 0x1
|
|
:pswitch_3
|
|
:pswitch_2
|
|
:pswitch_1
|
|
:pswitch_0
|
|
.end packed-switch
|
|
.end method
|
|
|
|
.method public static c(I)I
|
|
.locals 0
|
|
.annotation build Landroid/support/annotation/DrawableRes;
|
|
.end annotation
|
|
|
|
packed-switch p0, :pswitch_data_0
|
|
|
|
.line 76
|
|
sget p0, Lpad/aqi/cnemc/com/mjallergymodule/R$drawable;->map_buyifa:I
|
|
|
|
return p0
|
|
|
|
.line 74
|
|
:pswitch_0
|
|
sget p0, Lpad/aqi/cnemc/com/mjallergymodule/R$drawable;->map_jiyifa:I
|
|
|
|
return p0
|
|
|
|
.line 72
|
|
:pswitch_1
|
|
sget p0, Lpad/aqi/cnemc/com/mjallergymodule/R$drawable;->map_yifa:I
|
|
|
|
return p0
|
|
|
|
.line 70
|
|
:pswitch_2
|
|
sget p0, Lpad/aqi/cnemc/com/mjallergymodule/R$drawable;->map_jiaoyifa:I
|
|
|
|
return p0
|
|
|
|
.line 68
|
|
:pswitch_3
|
|
sget p0, Lpad/aqi/cnemc/com/mjallergymodule/R$drawable;->map_buyifa:I
|
|
|
|
return p0
|
|
|
|
:pswitch_data_0
|
|
.packed-switch 0x1
|
|
:pswitch_3
|
|
:pswitch_2
|
|
:pswitch_1
|
|
:pswitch_0
|
|
.end packed-switch
|
|
.end method
|
|
|
|
.method public static d(I)Ljava/lang/String;
|
|
.locals 0
|
|
|
|
packed-switch p0, :pswitch_data_0
|
|
|
|
const-string p0, "\u65e0"
|
|
|
|
return-object p0
|
|
|
|
:pswitch_0
|
|
const-string p0, "\u7a7a\u6c14\u6c61\u67d3\u7c7b"
|
|
|
|
return-object p0
|
|
|
|
:pswitch_1
|
|
const-string p0, "\u690d\u7269\u82b1\u7c89\u7c7b"
|
|
|
|
return-object p0
|
|
|
|
:pswitch_2
|
|
const-string p0, "\u65e0"
|
|
|
|
return-object p0
|
|
|
|
nop
|
|
|
|
:pswitch_data_0
|
|
.packed-switch 0x0
|
|
:pswitch_2
|
|
:pswitch_1
|
|
:pswitch_0
|
|
.end packed-switch
|
|
.end method
|