.class Lcom/moji/mjweather/setting/fragment/SettingDevelopConsoleFragment$7;
.super Ljava/lang/Object;
.source "SettingDevelopConsoleFragment.java"

# interfaces
.implements Landroid/content/DialogInterface$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/moji/mjweather/setting/fragment/SettingDevelopConsoleFragment;->onPreferenceClick(Landroid/preference/Preference;)Z
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Ljava/util/List;

.field final synthetic b:Lcom/moji/mjweather/setting/fragment/SettingDevelopConsoleFragment;


# direct methods
.method constructor <init>(Lcom/moji/mjweather/setting/fragment/SettingDevelopConsoleFragment;Ljava/util/List;)V
    .locals 0

    .line 280
    iput-object p1, p0, Lcom/moji/mjweather/setting/fragment/SettingDevelopConsoleFragment$7;->b:Lcom/moji/mjweather/setting/fragment/SettingDevelopConsoleFragment;

    iput-object p2, p0, Lcom/moji/mjweather/setting/fragment/SettingDevelopConsoleFragment$7;->a:Ljava/util/List;

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

    return-void
.end method


# virtual methods
.method public onClick(Landroid/content/DialogInterface;I)V
    .locals 2

    .line 283
    new-instance p1, Lcom/moji/push/PushData;

    invoke-direct {p1}, Lcom/moji/push/PushData;-><init>()V

    .line 284
    iget-object v0, p0, Lcom/moji/mjweather/setting/fragment/SettingDevelopConsoleFragment$7;->a:Ljava/util/List;

    invoke-interface {v0, p2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    iput-object v0, p1, Lcom/moji/push/PushData;->name:Ljava/lang/String;

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

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

    iget-object v1, p0, Lcom/moji/mjweather/setting/fragment/SettingDevelopConsoleFragment$7;->a:Ljava/util/List;

    invoke-interface {v1, p2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/String;

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

    const-string v1, "\u63a8\u9001\u6d4b\u8bd5title"

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

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

    move-result-object v0

    iput-object v0, p1, Lcom/moji/push/PushData;->title:Ljava/lang/String;

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

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

    iget-object v1, p0, Lcom/moji/mjweather/setting/fragment/SettingDevelopConsoleFragment$7;->a:Ljava/util/List;

    invoke-interface {v1, p2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p2

    check-cast p2, Ljava/lang/String;

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

    const-string p2, "\u63a8\u9001\u6d4b\u8bd5alert"

    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

    iput-object p2, p1, Lcom/moji/push/PushData;->alert:Ljava/lang/String;

    .line 287
    invoke-static {}, Lcom/moji/areamanagement/MJAreaManager;->a()Lcom/moji/common/area/AreaInfo;

    move-result-object p2

    if-eqz p2, :cond_0

    .line 288
    iget p2, p2, Lcom/moji/common/area/AreaInfo;->cityId:I

    goto :goto_0

    :cond_0
    const/4 p2, -0x1

    :goto_0
    invoke-static {p2}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object p2

    iput-object p2, p1, Lcom/moji/push/PushData;->cityid:Ljava/lang/String;

    .line 289
    invoke-static {p1}, Lcom/moji/push/PushTypeFactory;->a(Lcom/moji/push/PushData;)Lcom/moji/push/AbsPushType;

    move-result-object p1

    if-eqz p1, :cond_1

    .line 291
    invoke-static {}, Lcom/moji/tool/AppDelegate;->a()Landroid/content/Context;

    move-result-object p2

    .line 292
    invoke-virtual {p1, p2}, Lcom/moji/push/AbsPushType;->a(Landroid/content/Context;)V

    :cond_1
    return-void
.end method
