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

# interfaces
.implements Lcom/moji/dialog/control/MJDialogDefaultControl$SingleButtonCallback;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/moji/mjweather/setting/fragment/SettingWeatherAlertFragment;->a(Lcom/moji/mjweather/settingpreference/pref/MJPreferenceWithValue;)V
.end annotation

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


# instance fields
.field final synthetic a:Landroid/widget/TimePicker;

.field final synthetic b:Lcom/moji/mjweather/settingpreference/pref/MJPreferenceWithValue;

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


# direct methods
.method constructor <init>(Lcom/moji/mjweather/setting/fragment/SettingWeatherAlertFragment;Landroid/widget/TimePicker;Lcom/moji/mjweather/settingpreference/pref/MJPreferenceWithValue;)V
    .locals 0

    .line 115
    iput-object p1, p0, Lcom/moji/mjweather/setting/fragment/SettingWeatherAlertFragment$1;->c:Lcom/moji/mjweather/setting/fragment/SettingWeatherAlertFragment;

    iput-object p2, p0, Lcom/moji/mjweather/setting/fragment/SettingWeatherAlertFragment$1;->a:Landroid/widget/TimePicker;

    iput-object p3, p0, Lcom/moji/mjweather/setting/fragment/SettingWeatherAlertFragment$1;->b:Lcom/moji/mjweather/settingpreference/pref/MJPreferenceWithValue;

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

    return-void
.end method


# virtual methods
.method public a(Lcom/moji/dialog/MJDialog;Lcom/moji/dialog/type/ETypeAction;)V
    .locals 4
    .param p1    # Lcom/moji/dialog/MJDialog;
        .annotation build Landroid/support/annotation/NonNull;
        .end annotation
    .end param
    .param p2    # Lcom/moji/dialog/type/ETypeAction;
        .annotation build Landroid/support/annotation/NonNull;
        .end annotation
    .end param

    .line 118
    iget-object p1, p0, Lcom/moji/mjweather/setting/fragment/SettingWeatherAlertFragment$1;->a:Landroid/widget/TimePicker;

    invoke-virtual {p1}, Landroid/widget/TimePicker;->clearFocus()V

    .line 119
    iget-object p1, p0, Lcom/moji/mjweather/setting/fragment/SettingWeatherAlertFragment$1;->a:Landroid/widget/TimePicker;

    invoke-virtual {p1}, Landroid/widget/TimePicker;->getCurrentHour()Ljava/lang/Integer;

    move-result-object p1

    invoke-virtual {p1}, Ljava/lang/Integer;->intValue()I

    move-result p1

    .line 120
    iget-object p2, p0, Lcom/moji/mjweather/setting/fragment/SettingWeatherAlertFragment$1;->a:Landroid/widget/TimePicker;

    invoke-virtual {p2}, Landroid/widget/TimePicker;->getCurrentMinute()Ljava/lang/Integer;

    move-result-object p2

    invoke-virtual {p2}, Ljava/lang/Integer;->intValue()I

    move-result p2

    .line 121
    iget-object v0, p0, Lcom/moji/mjweather/setting/fragment/SettingWeatherAlertFragment$1;->b:Lcom/moji/mjweather/settingpreference/pref/MJPreferenceWithValue;

    if-eqz v0, :cond_5

    const-string v0, "pref_key_mn_morning_alert"

    .line 122
    iget-object v1, p0, Lcom/moji/mjweather/setting/fragment/SettingWeatherAlertFragment$1;->b:Lcom/moji/mjweather/settingpreference/pref/MJPreferenceWithValue;

    invoke-virtual {v1}, Lcom/moji/mjweather/settingpreference/pref/MJPreferenceWithValue;->getKey()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    const/16 v1, 0xa

    if-eqz v0, :cond_2

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

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

    if-ge p1, v1, :cond_0

    new-instance v2, Ljava/lang/StringBuilder;

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

    const-string v3, "0"

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

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

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

    move-result-object v2

    goto :goto_0

    :cond_0
    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

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

    const-string v2, ":"

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

    if-ge p2, v1, :cond_1

    new-instance v1, Ljava/lang/StringBuilder;

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

    const-string v2, "0"

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

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

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

    move-result-object v1

    goto :goto_1

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

    move-result-object v1

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

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

    move-result-object v0

    .line 124
    iget-object v1, p0, Lcom/moji/mjweather/setting/fragment/SettingWeatherAlertFragment$1;->b:Lcom/moji/mjweather/settingpreference/pref/MJPreferenceWithValue;

    invoke-virtual {v1, v0}, Lcom/moji/mjweather/settingpreference/pref/MJPreferenceWithValue;->a(Ljava/lang/CharSequence;)V

    .line 125
    iget-object v0, p0, Lcom/moji/mjweather/setting/fragment/SettingWeatherAlertFragment$1;->c:Lcom/moji/mjweather/setting/fragment/SettingWeatherAlertFragment;

    invoke-static {v0}, Lcom/moji/mjweather/setting/fragment/SettingWeatherAlertFragment;->a(Lcom/moji/mjweather/setting/fragment/SettingWeatherAlertFragment;)Lcom/moji/preferences/SettingNotificationPrefer;

    move-result-object v0

    invoke-virtual {v0, p1}, Lcom/moji/preferences/SettingNotificationPrefer;->b(I)V

    .line 126
    iget-object p1, p0, Lcom/moji/mjweather/setting/fragment/SettingWeatherAlertFragment$1;->c:Lcom/moji/mjweather/setting/fragment/SettingWeatherAlertFragment;

    invoke-static {p1}, Lcom/moji/mjweather/setting/fragment/SettingWeatherAlertFragment;->a(Lcom/moji/mjweather/setting/fragment/SettingWeatherAlertFragment;)Lcom/moji/preferences/SettingNotificationPrefer;

    move-result-object p1

    invoke-virtual {p1, p2}, Lcom/moji/preferences/SettingNotificationPrefer;->c(I)V

    .line 127
    new-instance p1, Lcom/moji/push/info/PushInfoSynchronous;

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

    invoke-virtual {p1}, Lcom/moji/push/info/PushInfoSynchronous;->syncAllPushInfo()V

    goto :goto_4

    :cond_2
    const-string v0, "pref_key_mn_night_alert"

    .line 128
    iget-object v2, p0, Lcom/moji/mjweather/setting/fragment/SettingWeatherAlertFragment$1;->b:Lcom/moji/mjweather/settingpreference/pref/MJPreferenceWithValue;

    invoke-virtual {v2}, Lcom/moji/mjweather/settingpreference/pref/MJPreferenceWithValue;->getKey()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_5

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

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

    if-ge p1, v1, :cond_3

    new-instance v2, Ljava/lang/StringBuilder;

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

    const-string v3, "0"

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

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

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

    move-result-object v2

    goto :goto_2

    :cond_3
    invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

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

    const-string v2, ":"

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

    if-ge p2, v1, :cond_4

    new-instance v1, Ljava/lang/StringBuilder;

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

    const-string v2, "0"

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

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

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

    move-result-object v1

    goto :goto_3

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

    move-result-object v1

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

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

    move-result-object v0

    .line 130
    iget-object v1, p0, Lcom/moji/mjweather/setting/fragment/SettingWeatherAlertFragment$1;->b:Lcom/moji/mjweather/settingpreference/pref/MJPreferenceWithValue;

    invoke-virtual {v1, v0}, Lcom/moji/mjweather/settingpreference/pref/MJPreferenceWithValue;->a(Ljava/lang/CharSequence;)V

    .line 131
    iget-object v0, p0, Lcom/moji/mjweather/setting/fragment/SettingWeatherAlertFragment$1;->c:Lcom/moji/mjweather/setting/fragment/SettingWeatherAlertFragment;

    invoke-static {v0}, Lcom/moji/mjweather/setting/fragment/SettingWeatherAlertFragment;->a(Lcom/moji/mjweather/setting/fragment/SettingWeatherAlertFragment;)Lcom/moji/preferences/SettingNotificationPrefer;

    move-result-object v0

    invoke-virtual {v0, p1}, Lcom/moji/preferences/SettingNotificationPrefer;->d(I)V

    .line 132
    iget-object p1, p0, Lcom/moji/mjweather/setting/fragment/SettingWeatherAlertFragment$1;->c:Lcom/moji/mjweather/setting/fragment/SettingWeatherAlertFragment;

    invoke-static {p1}, Lcom/moji/mjweather/setting/fragment/SettingWeatherAlertFragment;->a(Lcom/moji/mjweather/setting/fragment/SettingWeatherAlertFragment;)Lcom/moji/preferences/SettingNotificationPrefer;

    move-result-object p1

    invoke-virtual {p1, p2}, Lcom/moji/preferences/SettingNotificationPrefer;->e(I)V

    .line 133
    new-instance p1, Lcom/moji/push/info/PushInfoSynchronous;

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

    invoke-virtual {p1}, Lcom/moji/push/info/PushInfoSynchronous;->syncAllPushInfo()V

    :cond_5
    :goto_4
    return-void
.end method
