.class Lcom/moji/mjweather/setting/activity/SettingVoiceAlarmActivity$AlarmAdapter$10;
.super Ljava/lang/Object;
.source "SettingVoiceAlarmActivity.java"

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


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/moji/mjweather/setting/activity/SettingVoiceAlarmActivity$AlarmAdapter;->a(Lcom/moji/alarm/clock/AlarmClockData;Landroid/widget/TextView;Landroid/widget/TextView;)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/alarm/clock/AlarmClockData;

.field final synthetic c:Lcom/moji/mjweather/setting/activity/SettingVoiceAlarmActivity$AlarmAdapter;


# direct methods
.method constructor <init>(Lcom/moji/mjweather/setting/activity/SettingVoiceAlarmActivity$AlarmAdapter;Landroid/widget/TimePicker;Lcom/moji/alarm/clock/AlarmClockData;)V
    .locals 0

    .line 587
    iput-object p1, p0, Lcom/moji/mjweather/setting/activity/SettingVoiceAlarmActivity$AlarmAdapter$10;->c:Lcom/moji/mjweather/setting/activity/SettingVoiceAlarmActivity$AlarmAdapter;

    iput-object p2, p0, Lcom/moji/mjweather/setting/activity/SettingVoiceAlarmActivity$AlarmAdapter$10;->a:Landroid/widget/TimePicker;

    iput-object p3, p0, Lcom/moji/mjweather/setting/activity/SettingVoiceAlarmActivity$AlarmAdapter$10;->b:Lcom/moji/alarm/clock/AlarmClockData;

    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 1
    .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 590
    iget-object p1, p0, Lcom/moji/mjweather/setting/activity/SettingVoiceAlarmActivity$AlarmAdapter$10;->a:Landroid/widget/TimePicker;

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

    .line 591
    iget-object p1, p0, Lcom/moji/mjweather/setting/activity/SettingVoiceAlarmActivity$AlarmAdapter$10;->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 592
    iget-object p2, p0, Lcom/moji/mjweather/setting/activity/SettingVoiceAlarmActivity$AlarmAdapter$10;->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 593
    iget-object v0, p0, Lcom/moji/mjweather/setting/activity/SettingVoiceAlarmActivity$AlarmAdapter$10;->b:Lcom/moji/alarm/clock/AlarmClockData;

    iput p1, v0, Lcom/moji/alarm/clock/AlarmClockData;->hour:I

    .line 594
    iget-object p1, p0, Lcom/moji/mjweather/setting/activity/SettingVoiceAlarmActivity$AlarmAdapter$10;->b:Lcom/moji/alarm/clock/AlarmClockData;

    iput p2, p1, Lcom/moji/alarm/clock/AlarmClockData;->minutes:I

    .line 595
    iget-object p1, p0, Lcom/moji/mjweather/setting/activity/SettingVoiceAlarmActivity$AlarmAdapter$10;->b:Lcom/moji/alarm/clock/AlarmClockData;

    const/4 p2, 0x1

    iput-boolean p2, p1, Lcom/moji/alarm/clock/AlarmClockData;->enabled:Z

    .line 596
    iget-object p1, p0, Lcom/moji/mjweather/setting/activity/SettingVoiceAlarmActivity$AlarmAdapter$10;->c:Lcom/moji/mjweather/setting/activity/SettingVoiceAlarmActivity$AlarmAdapter;

    iget-object p1, p1, Lcom/moji/mjweather/setting/activity/SettingVoiceAlarmActivity$AlarmAdapter;->a:Lcom/moji/mjweather/setting/activity/SettingVoiceAlarmActivity;

    iget-object p2, p0, Lcom/moji/mjweather/setting/activity/SettingVoiceAlarmActivity$AlarmAdapter$10;->b:Lcom/moji/alarm/clock/AlarmClockData;

    invoke-static {p1, p2}, Lcom/moji/alarm/clock/AlarmClockManager;->b(Landroid/content/Context;Lcom/moji/alarm/clock/AlarmClockData;)J

    .line 597
    iget-object p1, p0, Lcom/moji/mjweather/setting/activity/SettingVoiceAlarmActivity$AlarmAdapter$10;->c:Lcom/moji/mjweather/setting/activity/SettingVoiceAlarmActivity$AlarmAdapter;

    iget-object p1, p1, Lcom/moji/mjweather/setting/activity/SettingVoiceAlarmActivity$AlarmAdapter;->a:Lcom/moji/mjweather/setting/activity/SettingVoiceAlarmActivity;

    invoke-static {p1}, Lcom/moji/mjweather/setting/activity/SettingVoiceAlarmActivity;->c(Lcom/moji/mjweather/setting/activity/SettingVoiceAlarmActivity;)Lcom/moji/mjweather/setting/activity/SettingVoiceAlarmActivity$AlarmAdapter;

    move-result-object p1

    invoke-virtual {p1}, Lcom/moji/mjweather/setting/activity/SettingVoiceAlarmActivity$AlarmAdapter;->notifyDataSetChanged()V

    return-void
.end method
