bft.smali
.class public Ldxoptimizer/bft;
.super Ljava/lang/Object;
.source "MessageControllerUtils.java"
# direct methods
.method public static a(Landroid/content/Context;Lorg/json/JSONObject;)Landroid/content/Intent;
.registers 3
.prologue
.line 124
const/4 v0, 0x0
invoke-static {p0, p1, v0}, Ldxoptimizer/bft;->a(Landroid/content/Context;Lorg/json/JSONObject;Z)Landroid/content/Intent;
move-result-object v0
return-object v0
.end method
.method public static a(Landroid/content/Context;Lorg/json/JSONObject;Z)Landroid/content/Intent;
.registers 8
.prologue
const/4 v1, 0x0
const/4 v2, 0x1
.line 105
.line 106
:try_start_2
const-string v0, "intent_type"
invoke-virtual {p1, v0}, Lorg/json/JSONObject;->getInt(Ljava/lang/String;)I
move-result v0
.line 107
if-ne v0, v2, :cond_16
.line 108
invoke-static {p0, p1}, Ldxoptimizer/bfo;->a(Landroid/content/Context;Lorg/json/JSONObject;)Landroid/content/Intent;
move-result-object v0
.line 113
:goto_e
if-eqz v0, :cond_15
if-nez p2, :cond_15
.line 114
invoke-static {v0}, Ldxoptimizer/bft;->a(Landroid/content/Intent;)V
.line 120
:cond_15
:goto_15
return-object v0
.line 109
:cond_16
const/4 v2, 0x2
if-ne v0, v2, :cond_2d
.line 110
const-string v0, "url"
invoke-virtual {p1, v0}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
.line 111
const/4 v2, 0x0
const/4 v3, 0x1
const/4 v4, 0x1
invoke-static {p0, v2, v0, v3, v4}, Ldxoptimizer/cfy;->a(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;ZZ)Landroid/content/Intent;
:try_end_25
.catch Lorg/json/JSONException; {:try_start_2 .. :try_end_25} :catch_27
move-result-object v0
goto :goto_e
.line 117
:catch_27
move-exception v0
.line 118
invoke-virtual {v0}, Lorg/json/JSONException;->printStackTrace()V
move-object v0, v1
.line 120
goto :goto_15
:cond_2d
move-object v0, v1
goto :goto_e
.end method
.method public static a(Landroid/content/Context;Landroid/content/Intent;Lorg/json/JSONObject;)Ldxoptimizer/cgd;
.registers 14
.prologue
const/4 v6, 0x0
const/4 v0, 0x1
const/4 v1, 0x0
.line 147
if-eqz p2, :cond_78
if-eqz p1, :cond_78
.line 148
:try_start_7
const-string v2, "title"
invoke-virtual {p2, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v2
.line 149
const-string v3, "main_btn"
const/4 v4, 0x0
invoke-virtual {p2, v3, v4}, Lorg/json/JSONObject;->optString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object v8
.line 150
const-string v3, "buttons"
const/4 v4, 0x0
invoke-virtual {p2, v3, v4}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;I)I
move-result v3
if-ne v3, v0, :cond_62
move v7, v0
.line 151
:goto_1e
const-string v0, "is_warn"
const/4 v1, 0x0
invoke-virtual {p2, v0, v1}, Lorg/json/JSONObject;->optBoolean(Ljava/lang/String;Z)Z
move-result v9
.line 152
const-string v0, "priority"
invoke-virtual {p2, v0}, Lorg/json/JSONObject;->getInt(Ljava/lang/String;)I
move-result v10
.line 153
const/4 v0, 0x0
const/high16 v1, 0x8000000
invoke-static {p0, v0, p1, v1}, Landroid/app/PendingIntent;->getActivity(Landroid/content/Context;ILandroid/content/Intent;I)Landroid/app/PendingIntent;
move-result-object v4
.line 154
invoke-static {v2}, Landroid/text/Html;->fromHtml(Ljava/lang/String;)Landroid/text/Spanned;
move-result-object v1
.line 155
const/4 v0, -0x1
const-string v2, ""
const/16 v5, 0x5a
move-object v3, v1
invoke-static/range {v0 .. v5}, Ldxoptimizer/cge;->a(ILjava/lang/CharSequence;Ljava/lang/CharSequence;Ljava/lang/CharSequence;Landroid/app/PendingIntent;I)Ldxoptimizer/cgd;
move-result-object v0
.line 158
if-eqz v7, :cond_58
.line 159
const/4 v1, 0x1
iput-boolean v1, v0, Ldxoptimizer/cgd;->m:Z
.line 160
if-eqz v8, :cond_64
.line 161
iput-object v8, v0, Ldxoptimizer/cgd;->n:Ljava/lang/CharSequence;
.line 165
if-eqz v9, :cond_66
.line 166
invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
move-result-object v1
const v2, 0x7f0d0067
invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getColor(I)I
move-result v1
iput v1, v0, Ldxoptimizer/cgd;->u:I
.line 171
:cond_58
:goto_58
const/4 v1, 0x1
iput-boolean v1, v0, Ldxoptimizer/cgd;->s:Z
.line 172
const/4 v1, 0x0
iput-boolean v1, v0, Ldxoptimizer/cgd;->p:Z
.line 173
packed-switch v10, :pswitch_data_86
.line 189
:goto_61
return-object v0
:cond_62
move v7, v1
.line 150
goto :goto_1e
:cond_64
move-object v0, v6
.line 163
goto :goto_61
.line 168
:cond_66
invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
move-result-object v1
const v2, 0x7f0d0045
invoke-virtual {v1, v2}, Landroid/content/res/Resources;->getColor(I)I
move-result v1
iput v1, v0, Ldxoptimizer/cgd;->u:I
:try_end_73
.catch Lorg/json/JSONException; {:try_start_7 .. :try_end_73} :catch_74
goto :goto_58
.line 186
:catch_74
move-exception v0
.line 187
invoke-virtual {v0}, Lorg/json/JSONException;->printStackTrace()V
:cond_78
move-object v0, v6
.line 189
goto :goto_61
.line 175
:pswitch_7a
const/4 v1, 0x0
:try_start_7b
iput v1, v0, Ldxoptimizer/cgd;->o:I
goto :goto_61
.line 178
:pswitch_7e
const/4 v1, 0x1
iput v1, v0, Ldxoptimizer/cgd;->o:I
goto :goto_61
.line 181
:pswitch_82
const/4 v1, 0x2
iput v1, v0, Ldxoptimizer/cgd;->o:I
:try_end_85
.catch Lorg/json/JSONException; {:try_start_7b .. :try_end_85} :catch_74
goto :goto_61
.line 173
:pswitch_data_86
.packed-switch 0x0
:pswitch_7a
:pswitch_7e
:pswitch_82
.end packed-switch
.end method
.method public static a(Landroid/content/Context;II)V
.registers 4
.prologue
.line 67
invoke-static {p0, p1}, Ldxoptimizer/bfv;->b(Landroid/content/Context;I)Z
move-result v0
if-eqz v0, :cond_17
.line 68
invoke-static {p0, p1}, Ldxoptimizer/cge;->a(Landroid/content/Context;I)V
.line 69
invoke-static {p0, p2}, Ldxoptimizer/bfv;->a(Landroid/content/Context;I)I
move-result v0
.line 70
if-lez v0, :cond_14
.line 71
add-int/lit8 v0, v0, -0x1
invoke-static {p0, p2, v0}, Ldxoptimizer/bfv;->a(Landroid/content/Context;II)V
.line 73
:cond_14
invoke-static {p0, p1}, Ldxoptimizer/bfv;->c(Landroid/content/Context;I)V
.line 75
:cond_17
return-void
.end method
.method public static a(Landroid/content/Context;Ljava/lang/String;)V
.registers 9
.prologue
const/4 v2, 0x2
.line 83
:try_start_1
new-instance v3, Lorg/json/JSONObject;
invoke-direct {v3, p1}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V
.line 84
const-string v0, "exist_notify_limit_hp"
invoke-virtual {v3, v0}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;)I
move-result v1
.line 85
const-string v0, "exist_notify_limit_lp"
invoke-virtual {v3, v0}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;)I
move-result v0
.line 86
const-string v4, "notify_day_limit_hp"
invoke-virtual {v3, v4}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;)I
move-result v4
.line 87
const-string v5, "notify_day_limit_lp"
invoke-virtual {v3, v5}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;)I
move-result v3
.line 89
new-instance v5, Ldxoptimizer/bfv;
invoke-direct {v5, p0}, Ldxoptimizer/bfv;-><init>(Landroid/content/Context;)V
.line 90
const/4 v6, 0x2
if-lez v4, :cond_3c
:goto_26
invoke-virtual {v5, v6, v4}, Ldxoptimizer/bfv;->a(II)V
.line 92
const/4 v4, 0x0
if-lez v3, :cond_3e
:goto_2c
invoke-virtual {v5, v4, v3}, Ldxoptimizer/bfv;->a(II)V
.line 94
const/4 v3, 0x2
if-lez v1, :cond_40
:goto_32
invoke-virtual {v5, v3, v1}, Ldxoptimizer/bfv;->b(II)V
.line 96
const/4 v1, 0x0
if-lez v0, :cond_42
:goto_38
invoke-virtual {v5, v1, v0}, Ldxoptimizer/bfv;->b(II)V
:try_end_3b
.catch Lorg/json/JSONException; {:try_start_1 .. :try_end_3b} :catch_44
.line 101
:goto_3b
return-void
.line 90
:cond_3c
const/4 v4, 0x3
goto :goto_26
:cond_3e
move v3, v2
.line 92
goto :goto_2c
:cond_40
move v1, v2
.line 94
goto :goto_32
.line 96
:cond_42
const/4 v0, 0x1
goto :goto_38
.line 98
:catch_44
move-exception v0
.line 99
invoke-virtual {v0}, Lorg/json/JSONException;->printStackTrace()V
goto :goto_3b
.end method
.method public static a(Landroid/content/Intent;)V
.registers 3
.prologue
.line 63
sget-object v0, Ldxoptimizer/cch;->a:Ljava/lang/String;
sget-object v1, Ldxoptimizer/cch;->b:Ljava/lang/String;
invoke-virtual {p0, v0, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
.line 64
return-void
.end method
.method public static b(Landroid/content/Context;Ljava/lang/String;)Z
.registers 6
.prologue
const/4 v1, 0x0
.line 128
if-eqz p1, :cond_27
.line 130
:try_start_3
new-instance v3, Lorg/json/JSONArray;
invoke-direct {v3, p1}, Lorg/json/JSONArray;-><init>(Ljava/lang/String;)V
move v2, v1
.line 131
:goto_9
invoke-virtual {v3}, Lorg/json/JSONArray;->length()I
move-result v0
if-ge v2, v0, :cond_25
.line 132
invoke-virtual {v3, v2}, Lorg/json/JSONArray;->get(I)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/String;
invoke-static {p0, v0}, Ldxoptimizer/cem;->g(Landroid/content/Context;Ljava/lang/String;)Z
:try_end_18
.catch Lorg/json/JSONException; {:try_start_3 .. :try_end_18} :catch_21
move-result v0
if-eqz v0, :cond_1d
.line 133
const/4 v0, 0x1
.line 142
:goto_1c
return v0
.line 131
:cond_1d
add-int/lit8 v0, v2, 0x1
move v2, v0
goto :goto_9
.line 136
:catch_21
move-exception v0
.line 137
invoke-virtual {v0}, Lorg/json/JSONException;->printStackTrace()V
:cond_25
move v0, v1
.line 142
goto :goto_1c
:cond_27
move v0, v1
.line 140
goto :goto_1c
.end method