.class Lcom/moji/mjweather/setting/fragment/SettingDevelopConsoleFragment$5;
.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:Landroid/preference/Preference;

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


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

    .line 227
    iput-object p1, p0, Lcom/moji/mjweather/setting/fragment/SettingDevelopConsoleFragment$5;->c:Lcom/moji/mjweather/setting/fragment/SettingDevelopConsoleFragment;

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

    iput-object p3, p0, Lcom/moji/mjweather/setting/fragment/SettingDevelopConsoleFragment$5;->b:Landroid/preference/Preference;

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

    return-void
.end method

.method private a()V
    .locals 3

    .line 239
    sget-object v0, Lcom/moji/mjweather/setting/fragment/SettingDevelopConsoleFragment;->i:Landroid/content/SharedPreferences;

    invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    const-string v1, "setting_develop_console_open_activity_when_app_start"

    const-string v2, ""

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;

    move-result-object v0

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

    return-void
.end method


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

    .line 230
    iget-object p1, p0, Lcom/moji/mjweather/setting/fragment/SettingDevelopConsoleFragment$5;->a:Ljava/util/List;

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

    move-result-object p1

    check-cast p1, Ljava/lang/String;

    if-nez p2, :cond_0

    .line 232
    invoke-direct {p0}, Lcom/moji/mjweather/setting/fragment/SettingDevelopConsoleFragment$5;->a()V

    goto :goto_0

    .line 234
    :cond_0
    iget-object p2, p0, Lcom/moji/mjweather/setting/fragment/SettingDevelopConsoleFragment$5;->c:Lcom/moji/mjweather/setting/fragment/SettingDevelopConsoleFragment;

    iget-object v0, p0, Lcom/moji/mjweather/setting/fragment/SettingDevelopConsoleFragment$5;->b:Landroid/preference/Preference;

    invoke-static {p2, v0, p1}, Lcom/moji/mjweather/setting/fragment/SettingDevelopConsoleFragment;->a(Lcom/moji/mjweather/setting/fragment/SettingDevelopConsoleFragment;Landroid/preference/Preference;Ljava/lang/String;)V

    :goto_0
    return-void
.end method
