Backport: Do not skip current day on alarm set failure
This commit is contained in:
1 parent
dbcc18cc05
commit
9870fede2b
1 file changed
+6
-2
+6
-2
@@ -117,12 +117,16 @@ static void click_handler_skip_update_notification(void *recognizer, void *ctx)
|
||||
|
||||
static void click_handler_push_setter(void *recognizer, void *ctx) {
|
||||
s_highlight_pos = 0;
|
||||
s_skip_current_day = true; // setting the next alarm should assume the user meant tomorrow
|
||||
s_alarm_reason = WAKE_MAIN_ALARM; // going back to setter means alarm was disarmed or failed to set; do not punish user
|
||||
window_stack_pop_all(true);
|
||||
push_setter_window();
|
||||
}
|
||||
|
||||
static void click_handler_push_setter_skip_current_day(void *recognizer, void *ctx) {
|
||||
s_skip_current_day = true; // setting the next alarm should assume the user meant tomorrow
|
||||
click_handler_push_setter(recognizer, ctx);
|
||||
}
|
||||
|
||||
static void click_handler_exit(void *recognizer, void *ctx) {
|
||||
window_stack_pop_all(true);
|
||||
}
|
||||
@@ -137,7 +141,7 @@ static void status_main_tutorial_click_config_provider(void *ctx) {
|
||||
}
|
||||
|
||||
static void status_confirmation_click_config_provider(void *ctx) {
|
||||
window_single_click_subscribe(BUTTON_ID_BACK, click_handler_push_setter);
|
||||
window_single_click_subscribe(BUTTON_ID_BACK, click_handler_push_setter_skip_current_day);
|
||||
window_single_click_subscribe(BUTTON_ID_SELECT, click_handler_exit);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user