Moved sleep animation check into the function rather than the switch statement

This commit is contained in:
David Volovskiy 2025-08-27 17:17:11 -04:00
parent 2770b8b924
commit db2d5cbf68

View File

@ -551,6 +551,9 @@ void endless_runner_face_activate(void *context) {
ball_arr_seg = is_custom_lcd ? custom_ball_arr_seg : classic_ball_arr_seg;
obstacle_arr_com = is_custom_lcd ? custom_obstacle_arr_com : classic_obstacle_arr_com;
obstacle_arr_seg = is_custom_lcd ? custom_obstacle_arr_seg : classic_obstacle_arr_seg;
if (watch_sleep_animation_is_running()) {
watch_stop_blink();
}
}
bool endless_runner_face_loop(movement_event_t event, void *context) {
@ -558,9 +561,6 @@ bool endless_runner_face_loop(movement_event_t event, void *context) {
switch (event.event_type) {
case EVENT_ACTIVATE:
disable_tap_control(state);
if (watch_sleep_animation_is_running()) {
watch_stop_blink();
}
check_and_reset_hi_score(state);
display_title(state);
break;