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

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


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/moji/mjweather/setting/fragment/SettingPersonalityWidgetFragment;->e()V
.end annotation

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


# instance fields
.field final synthetic a:Lcom/moji/mjweather/setting/fragment/SettingPersonalityWidgetFragment;


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

    .line 160
    iput-object p1, p0, Lcom/moji/mjweather/setting/fragment/SettingPersonalityWidgetFragment$2;->a:Lcom/moji/mjweather/setting/fragment/SettingPersonalityWidgetFragment;

    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 163
    iget-object v0, p0, Lcom/moji/mjweather/setting/fragment/SettingPersonalityWidgetFragment$2;->a:Lcom/moji/mjweather/setting/fragment/SettingPersonalityWidgetFragment;

    invoke-virtual {v0}, Lcom/moji/mjweather/setting/fragment/SettingPersonalityWidgetFragment;->getPreferenceScreen()Landroid/preference/PreferenceScreen;

    move-result-object v0

    invoke-virtual {v0}, Landroid/preference/PreferenceScreen;->getSharedPreferences()Landroid/content/SharedPreferences;

    move-result-object v0

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

    move-result-object v0

    const-string v1, "setting_personality_widget_background_color"

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

    move-result-object p2

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

    .line 164
    invoke-interface {p1}, Landroid/content/DialogInterface;->dismiss()V

    return-void
.end method
