Skip to content

Commit fa7f94d

Browse files
aod: fix aod setting during notification sleep
1 parent 600f975 commit fa7f94d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/components/settings/Settings.h

+5-3
Original file line numberDiff line numberDiff line change
@@ -238,9 +238,11 @@ namespace Pinetime {
238238
settingsChanged = true;
239239
}
240240
settings.alwaysOnDisplay.enabled = state;
241-
// the always on state and enabled flags should always match
242-
// if the setting is being modified by the user
243-
SetAlwaysOnDisplay(state);
241+
242+
// Don't enable the aod if we are currently in notification sleep
243+
if (GetNotificationStatus() != Notification::Sleep) {
244+
SetAlwaysOnDisplay(state);
245+
}
244246
}
245247

246248
bool GetAlwaysOnDisplaySetting() const {

0 commit comments

Comments
 (0)