.class public Lcom/moji/forum/base/ForumPrefer;
.super Lcom/moji/tool/preferences/core/BasePreferences;
.source "ForumPrefer.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/moji/forum/base/ForumPrefer$Key;
    }
.end annotation


# static fields
.field private static e:J

.field private static volatile f:Lcom/moji/forum/base/ForumPrefer;


# instance fields
.field private final a:J

.field private b:Lcom/google/gson/Gson;

.field private d:Landroid/content/SharedPreferences;


# direct methods
.method private constructor <init>(Landroid/content/Context;)V
    .locals 2

    .line 265
    invoke-direct {p0, p1}, Lcom/moji/tool/preferences/core/BasePreferences;-><init>(Landroid/content/Context;)V

    .line 23
    invoke-static {}, Lcom/moji/tool/DeviceTool;->F()I

    move-result v0

    int-to-long v0, v0

    iput-wide v0, p0, Lcom/moji/forum/base/ForumPrefer;->a:J

    .line 266
    invoke-virtual {p0}, Lcom/moji/forum/base/ForumPrefer;->a()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p0}, Lcom/moji/forum/base/ForumPrefer;->b()I

    move-result v1

    invoke-virtual {p1, v0, v1}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object p1

    iput-object p1, p0, Lcom/moji/forum/base/ForumPrefer;->d:Landroid/content/SharedPreferences;

    .line 267
    new-instance p1, Lcom/google/gson/Gson;

    invoke-direct {p1}, Lcom/google/gson/Gson;-><init>()V

    iput-object p1, p0, Lcom/moji/forum/base/ForumPrefer;->b:Lcom/google/gson/Gson;

    return-void
.end method

.method private b(Ljava/lang/String;J)V
    .locals 1

    .line 242
    iget-object v0, p0, Lcom/moji/forum/base/ForumPrefer;->c:Landroid/content/SharedPreferences$Editor;

    invoke-interface {v0, p1, p2, p3}, Landroid/content/SharedPreferences$Editor;->putLong(Ljava/lang/String;J)Landroid/content/SharedPreferences$Editor;

    .line 243
    iget-object p1, p0, Lcom/moji/forum/base/ForumPrefer;->c:Landroid/content/SharedPreferences$Editor;

    invoke-interface {p1}, Landroid/content/SharedPreferences$Editor;->apply()V

    return-void
.end method

.method public static e()Lcom/moji/forum/base/ForumPrefer;
    .locals 3

    .line 253
    sget-object v0, Lcom/moji/forum/base/ForumPrefer;->f:Lcom/moji/forum/base/ForumPrefer;

    if-nez v0, :cond_1

    .line 254
    const-class v0, Lcom/moji/forum/base/ForumPrefer;

    monitor-enter v0

    .line 255
    :try_start_0
    sget-object v1, Lcom/moji/forum/base/ForumPrefer;->f:Lcom/moji/forum/base/ForumPrefer;

    if-nez v1, :cond_0

    .line 256
    new-instance v1, Lcom/moji/forum/base/ForumPrefer;

    sget-object v2, Lcom/moji/forum/common/ForumUtil;->a:Landroid/content/Context;

    invoke-direct {v1, v2}, Lcom/moji/forum/base/ForumPrefer;-><init>(Landroid/content/Context;)V

    sput-object v1, Lcom/moji/forum/base/ForumPrefer;->f:Lcom/moji/forum/base/ForumPrefer;

    .line 258
    :cond_0
    monitor-exit v0

    goto :goto_0

    :catchall_0
    move-exception v1

    monitor-exit v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v1

    .line 260
    :cond_1
    :goto_0
    sget-object v0, Lcom/moji/forum/base/ForumPrefer;->f:Lcom/moji/forum/base/ForumPrefer;

    return-object v0
.end method


# virtual methods
.method public a(Ljava/lang/String;J)J
    .locals 1

    .line 247
    iget-object v0, p0, Lcom/moji/forum/base/ForumPrefer;->d:Landroid/content/SharedPreferences;

    invoke-interface {v0, p1, p2, p3}, Landroid/content/SharedPreferences;->getLong(Ljava/lang/String;J)J

    move-result-wide p1

    return-wide p1
.end method

.method public a()Ljava/lang/String;
    .locals 1

    const-string v0, "forum_perfer"

    return-object v0
.end method

.method public a(Ljava/lang/String;)Ljava/lang/String;
    .locals 2

    .line 146
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    sget-object v1, Lcom/moji/forum/base/ForumPrefer$Key;->NEW_TOPIC_TITLE:Lcom/moji/forum/base/ForumPrefer$Key;

    invoke-virtual {v1}, Lcom/moji/forum/base/ForumPrefer$Key;->name()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    const-string v0, ""

    invoke-virtual {p0, p1, v0}, Lcom/moji/forum/base/ForumPrefer;->e(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    return-object p1
.end method

.method public a(JLjava/lang/String;)V
    .locals 2

    .line 175
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    sget-object v1, Lcom/moji/forum/base/ForumPrefer$Key;->NEW_TOPIC_TAG_ID:Lcom/moji/forum/base/ForumPrefer$Key;

    invoke-virtual {v1}, Lcom/moji/forum/base/ForumPrefer$Key;->name()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p3

    invoke-direct {p0, p3, p1, p2}, Lcom/moji/forum/base/ForumPrefer;->b(Ljava/lang/String;J)V

    return-void
.end method

.method public a(Ljava/lang/String;Ljava/lang/String;)V
    .locals 2

    .line 142
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    sget-object v1, Lcom/moji/forum/base/ForumPrefer$Key;->NEW_TOPIC_TITLE:Lcom/moji/forum/base/ForumPrefer$Key;

    invoke-virtual {v1}, Lcom/moji/forum/base/ForumPrefer$Key;->name()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p2

    invoke-virtual {p0, p2, p1}, Lcom/moji/forum/base/ForumPrefer;->f(Ljava/lang/String;Ljava/lang/String;)V

    return-void
.end method

.method public a(Ljava/util/ArrayList;Ljava/lang/String;)V
    .locals 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/ArrayList<",
            "Lcom/moji/http/ugc/bean/ImageInfo;",
            ">;",
            "Ljava/lang/String;",
            ")V"
        }
    .end annotation

    const-string v0, ""

    if-eqz p1, :cond_0

    .line 184
    invoke-virtual {p1}, Ljava/util/ArrayList;->size()I

    move-result v1

    if-eqz v1, :cond_0

    .line 185
    iget-object v0, p0, Lcom/moji/forum/base/ForumPrefer;->b:Lcom/google/gson/Gson;

    invoke-virtual {v0, p1}, Lcom/google/gson/Gson;->toJson(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    .line 187
    :cond_0
    new-instance p1, Ljava/lang/StringBuilder;

    invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V

    sget-object v1, Lcom/moji/forum/base/ForumPrefer$Key;->NEW_TOPIC_IMAGE_LIST:Lcom/moji/forum/base/ForumPrefer$Key;

    invoke-virtual {v1}, Lcom/moji/forum/base/ForumPrefer$Key;->name()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p1, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {p0, p1, v0}, Lcom/moji/forum/base/ForumPrefer;->f(Ljava/lang/String;Ljava/lang/String;)V

    return-void
.end method

.method public b()I
    .locals 1

    const/4 v0, 0x0

    return v0
.end method

.method public b(Ljava/lang/String;)Ljava/lang/String;
    .locals 2

    .line 154
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    sget-object v1, Lcom/moji/forum/base/ForumPrefer$Key;->NEW_TOPIC_CONTENT:Lcom/moji/forum/base/ForumPrefer$Key;

    invoke-virtual {v1}, Lcom/moji/forum/base/ForumPrefer$Key;->name()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    const-string v0, ""

    invoke-virtual {p0, p1, v0}, Lcom/moji/forum/base/ForumPrefer;->e(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    return-object p1
.end method

.method public b(Ljava/lang/String;Ljava/lang/String;)V
    .locals 2

    .line 150
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    sget-object v1, Lcom/moji/forum/base/ForumPrefer$Key;->NEW_TOPIC_CONTENT:Lcom/moji/forum/base/ForumPrefer$Key;

    invoke-virtual {v1}, Lcom/moji/forum/base/ForumPrefer$Key;->name()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p2

    invoke-virtual {p0, p2, p1}, Lcom/moji/forum/base/ForumPrefer;->f(Ljava/lang/String;Ljava/lang/String;)V

    return-void
.end method

.method public b(Ljava/util/ArrayList;Ljava/lang/String;)V
    .locals 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/ArrayList<",
            "Lcom/moji/http/ugc/bean/AtInfo;",
            ">;",
            "Ljava/lang/String;",
            ")V"
        }
    .end annotation

    const-string v0, ""

    if-eqz p1, :cond_0

    .line 193
    invoke-virtual {p1}, Ljava/util/ArrayList;->size()I

    move-result v1

    if-eqz v1, :cond_0

    .line 194
    iget-object v0, p0, Lcom/moji/forum/base/ForumPrefer;->b:Lcom/google/gson/Gson;

    invoke-virtual {v0, p1}, Lcom/google/gson/Gson;->toJson(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    .line 196
    :cond_0
    new-instance p1, Ljava/lang/StringBuilder;

    invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V

    sget-object v1, Lcom/moji/forum/base/ForumPrefer$Key;->NEW_TOPIC_AT_INFO_LIST:Lcom/moji/forum/base/ForumPrefer$Key;

    invoke-virtual {v1}, Lcom/moji/forum/base/ForumPrefer$Key;->name()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p1, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {p0, p1, v0}, Lcom/moji/forum/base/ForumPrefer;->f(Ljava/lang/String;Ljava/lang/String;)V

    return-void
.end method

.method public c()J
    .locals 5

    .line 111
    sget-wide v0, Lcom/moji/forum/base/ForumPrefer;->e:J

    const-wide/16 v2, 0x0

    cmp-long v4, v0, v2

    if-nez v4, :cond_0

    .line 112
    sget-object v0, Lcom/moji/forum/base/ForumPrefer$Key;->TOPIC_SHARE_USER_GUIDE:Lcom/moji/forum/base/ForumPrefer$Key;

    invoke-virtual {p0, v0, v2, v3}, Lcom/moji/forum/base/ForumPrefer;->a(Lcom/moji/tool/preferences/core/IPreferKey;J)J

    move-result-wide v0

    sput-wide v0, Lcom/moji/forum/base/ForumPrefer;->e:J

    .line 114
    :cond_0
    sget-wide v0, Lcom/moji/forum/base/ForumPrefer;->e:J

    return-wide v0
.end method

.method public c(Ljava/lang/String;)Ljava/lang/String;
    .locals 2

    .line 162
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    sget-object v1, Lcom/moji/forum/base/ForumPrefer$Key;->NEW_TOPIC_ACTIVE_TITLE:Lcom/moji/forum/base/ForumPrefer$Key;

    invoke-virtual {v1}, Lcom/moji/forum/base/ForumPrefer$Key;->name()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    const-string v0, ""

    invoke-virtual {p0, p1, v0}, Lcom/moji/forum/base/ForumPrefer;->e(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    return-object p1
.end method

.method public c(Ljava/lang/String;Ljava/lang/String;)V
    .locals 2

    .line 158
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    sget-object v1, Lcom/moji/forum/base/ForumPrefer$Key;->NEW_TOPIC_ACTIVE_TITLE:Lcom/moji/forum/base/ForumPrefer$Key;

    invoke-virtual {v1}, Lcom/moji/forum/base/ForumPrefer$Key;->name()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p2

    invoke-virtual {p0, p2, p1}, Lcom/moji/forum/base/ForumPrefer;->f(Ljava/lang/String;Ljava/lang/String;)V

    return-void
.end method

.method public d(Ljava/lang/String;)Ljava/lang/String;
    .locals 2

    .line 170
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    sget-object v1, Lcom/moji/forum/base/ForumPrefer$Key;->NEW_TOPIC_TAG:Lcom/moji/forum/base/ForumPrefer$Key;

    invoke-virtual {v1}, Lcom/moji/forum/base/ForumPrefer$Key;->name()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    const-string v0, ""

    invoke-virtual {p0, p1, v0}, Lcom/moji/forum/base/ForumPrefer;->e(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    return-object p1
.end method

.method public d(Ljava/lang/String;Ljava/lang/String;)V
    .locals 2

    .line 166
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    sget-object v1, Lcom/moji/forum/base/ForumPrefer$Key;->NEW_TOPIC_TAG:Lcom/moji/forum/base/ForumPrefer$Key;

    invoke-virtual {v1}, Lcom/moji/forum/base/ForumPrefer$Key;->name()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p2

    invoke-virtual {p0, p2, p1}, Lcom/moji/forum/base/ForumPrefer;->f(Ljava/lang/String;Ljava/lang/String;)V

    return-void
.end method

.method public d()Z
    .locals 5

    .line 118
    invoke-virtual {p0}, Lcom/moji/forum/base/ForumPrefer;->c()J

    move-result-wide v0

    iget-wide v2, p0, Lcom/moji/forum/base/ForumPrefer;->a:J

    cmp-long v4, v0, v2

    if-eqz v4, :cond_0

    const/4 v0, 0x1

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    :goto_0
    return v0
.end method

.method public e(Ljava/lang/String;)J
    .locals 2

    .line 179
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    sget-object v1, Lcom/moji/forum/base/ForumPrefer$Key;->NEW_TOPIC_TAG_ID:Lcom/moji/forum/base/ForumPrefer$Key;

    invoke-virtual {v1}, Lcom/moji/forum/base/ForumPrefer$Key;->name()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    const-wide/16 v0, -0x1

    invoke-virtual {p0, p1, v0, v1}, Lcom/moji/forum/base/ForumPrefer;->a(Ljava/lang/String;J)J

    move-result-wide v0

    return-wide v0
.end method

.method public f(Ljava/lang/String;)Ljava/util/ArrayList;
    .locals 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            ")",
            "Ljava/util/ArrayList<",
            "Lcom/moji/http/ugc/bean/AtInfo;",
            ">;"
        }
    .end annotation

    .line 200
    invoke-static {}, Lcom/moji/forum/common/ForumUtil;->a()Z

    move-result v0

    const/4 v1, 0x0

    if-nez v0, :cond_0

    return-object v1

    .line 203
    :cond_0
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    sget-object v2, Lcom/moji/forum/base/ForumPrefer$Key;->NEW_TOPIC_AT_INFO_LIST:Lcom/moji/forum/base/ForumPrefer$Key;

    invoke-virtual {v2}, Lcom/moji/forum/base/ForumPrefer$Key;->name()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    const-string v0, ""

    invoke-virtual {p0, p1, v0}, Lcom/moji/forum/base/ForumPrefer;->e(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    const-string v0, ""

    .line 204
    invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    return-object v1

    .line 208
    :cond_1
    :try_start_0
    iget-object v0, p0, Lcom/moji/forum/base/ForumPrefer;->b:Lcom/google/gson/Gson;

    new-instance v2, Lcom/moji/forum/base/ForumPrefer$1;

    invoke-direct {v2, p0}, Lcom/moji/forum/base/ForumPrefer$1;-><init>(Lcom/moji/forum/base/ForumPrefer;)V

    .line 209
    invoke-virtual {v2}, Lcom/moji/forum/base/ForumPrefer$1;->getType()Ljava/lang/reflect/Type;

    move-result-object v2

    .line 208
    invoke-virtual {v0, p1, v2}, Lcom/google/gson/Gson;->fromJson(Ljava/lang/String;Ljava/lang/reflect/Type;)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Ljava/util/ArrayList;
    :try_end_0
    .catch Ljava/lang/ClassCastException; {:try_start_0 .. :try_end_0} :catch_0

    return-object p1

    :catch_0
    return-object v1
.end method

.method public g(Ljava/lang/String;)Ljava/util/ArrayList;
    .locals 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            ")",
            "Ljava/util/ArrayList<",
            "Lcom/moji/http/ugc/bean/ImageInfo;",
            ">;"
        }
    .end annotation

    .line 217
    invoke-static {}, Lcom/moji/forum/common/ForumUtil;->a()Z

    move-result v0

    const/4 v1, 0x0

    if-nez v0, :cond_0

    return-object v1

    .line 220
    :cond_0
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    sget-object v2, Lcom/moji/forum/base/ForumPrefer$Key;->NEW_TOPIC_IMAGE_LIST:Lcom/moji/forum/base/ForumPrefer$Key;

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    const-string v0, ""

    invoke-virtual {p0, p1, v0}, Lcom/moji/forum/base/ForumPrefer;->e(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    const-string v0, ""

    .line 221
    invoke-virtual {p1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    return-object v1

    .line 225
    :cond_1
    :try_start_0
    iget-object v0, p0, Lcom/moji/forum/base/ForumPrefer;->b:Lcom/google/gson/Gson;

    new-instance v2, Lcom/moji/forum/base/ForumPrefer$2;

    invoke-direct {v2, p0}, Lcom/moji/forum/base/ForumPrefer$2;-><init>(Lcom/moji/forum/base/ForumPrefer;)V

    .line 226
    invoke-virtual {v2}, Lcom/moji/forum/base/ForumPrefer$2;->getType()Ljava/lang/reflect/Type;

    move-result-object v2

    .line 225
    invoke-virtual {v0, p1, v2}, Lcom/google/gson/Gson;->fromJson(Ljava/lang/String;Ljava/lang/reflect/Type;)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Ljava/util/ArrayList;
    :try_end_0
    .catch Ljava/lang/ClassCastException; {:try_start_0 .. :try_end_0} :catch_0

    return-object p1

    :catch_0
    return-object v1
.end method
