Skip to content

Commit 152f028

Browse files
committed
Fixed bug where brightness isn't low when watch turning on from sleep.
1 parent 14d173f commit 152f028

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/displayapp/DisplayApp.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -760,6 +760,10 @@ void DisplayApp::Register(Pinetime::Controllers::NavigationService* NavigationSe
760760
}
761761

762762
void DisplayApp::ApplyBrightness() {
763+
if (infiniSleepController.IsEnabled() || currentApp == Apps::Sleep) {
764+
brightnessController.Set(Controllers::BrightnessController::Levels::Low);
765+
return;
766+
}
763767
auto brightness = settingsController.GetBrightness();
764768
if (brightness != Controllers::BrightnessController::Levels::Low && brightness != Controllers::BrightnessController::Levels::Medium &&
765769
brightness != Controllers::BrightnessController::Levels::High) {

0 commit comments

Comments
 (0)