]> git.earman.xyz Git - sensor-watch.git/commitdiff
activity log: clear animation when waking from sleep mode
authorJoey Castillo <joeycastillo@utexas.edu>
Sun, 18 May 2025 15:26:47 +0000 (11:26 -0400)
committerJoey Castillo <joeycastillo@utexas.edu>
Sun, 18 May 2025 17:29:45 +0000 (13:29 -0400)
watch-faces/sensor/activity_logging_face.c

index 25e9fd2fa256e4ef29070595e49035e35e21cd7b..dddbc5af0ee3daf20ca62e2f366f39bb06b37681 100644 (file)
@@ -88,6 +88,9 @@ bool activity_logging_face_loop(movement_event_t event, void *context) {
             state->display_index = (state->display_index + 1) % ACTIVITY_LOGGING_NUM_DAYS;
             // fall through
         case EVENT_ACTIVATE:
+            if (watch_sleep_animation_is_running()) {
+                watch_stop_sleep_animation();
+            }
             _activity_logging_face_update_display(state);
             break;
         case EVENT_BACKGROUND_TASK: