e.smali
.class public Lcom/cleanmaster/internalrecommend/e;
.super Ljava/lang/Object;
.source "ParserExitAppInfo.java"
# direct methods
.method public static a(Lorg/json/JSONObject;)Lcom/cleanmaster/internalrecommend/ExitAppInfo;
.registers 4
.prologue
const/4 v1, 0x0
.line 39
if-eqz p0, :cond_21
.line 41
:try_start_3
new-instance v0, Lcom/cleanmaster/internalrecommend/ExitAppInfo;
invoke-direct {v0}, Lcom/cleanmaster/internalrecommend/ExitAppInfo;-><init>()V
.line 42
const-string v2, "pkgName"
invoke-virtual {p0, v2}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v2
invoke-virtual {v0, v2}, Lcom/cleanmaster/internalrecommend/ExitAppInfo;->a(Ljava/lang/String;)V
.line 43
const-string v2, "activityName"
invoke-virtual {p0, v2}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;
move-result-object v2
invoke-virtual {v0, v2}, Lcom/cleanmaster/internalrecommend/ExitAppInfo;->b(Ljava/lang/String;)V
:try_end_1a
.catch Ljava/lang/Exception; {:try_start_3 .. :try_end_1a} :catch_1b
.line 52
:goto_1a
return-object v0
.line 44
:catch_1b
move-exception v0
.line 45
invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V
move-object v0, v1
.line 47
goto :goto_1a
:cond_21
move-object v0, v1
.line 50
goto :goto_1a
.end method
.method public static a(Ljava/lang/String;)Ljava/util/List;
.registers 6
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
")",
"Ljava/util/List",
"<",
"Lcom/cleanmaster/internalrecommend/ExitAppInfo;",
">;"
}
.end annotation
.prologue
const/4 v1, 0x0
.line 17
invoke-static {p0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v0
if-nez v0, :cond_2e
.line 19
:try_start_7
new-instance v3, Lorg/json/JSONArray;
invoke-direct {v3, p0}, Lorg/json/JSONArray;-><init>(Ljava/lang/String;)V
.line 20
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
.line 21
const/4 v2, 0x0
:goto_12
invoke-virtual {v3}, Lorg/json/JSONArray;->length()I
move-result v4
if-ge v2, v4, :cond_2d
.line 22
invoke-virtual {v3, v2}, Lorg/json/JSONArray;->optJSONObject(I)Lorg/json/JSONObject;
move-result-object v4
.line 23
if-eqz v4, :cond_25
.line 24
invoke-static {v4}, Lcom/cleanmaster/internalrecommend/e;->a(Lorg/json/JSONObject;)Lcom/cleanmaster/internalrecommend/ExitAppInfo;
move-result-object v4
invoke-interface {v0, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z
:try_end_25
.catch Lorg/json/JSONException; {:try_start_7 .. :try_end_25} :catch_28
.line 21
:cond_25
add-int/lit8 v2, v2, 0x1
goto :goto_12
.line 27
:catch_28
move-exception v0
.line 28
invoke-virtual {v0}, Lorg/json/JSONException;->printStackTrace()V
move-object v0, v1
.line 34
:cond_2d
:goto_2d
return-object v0
:cond_2e
move-object v0, v1
.line 32
goto :goto_2d
.end method