Skip to content

Commit

Permalink
aod: fix flashlight brightness not being restored
Browse files Browse the repository at this point in the history
  • Loading branch information
KaffeinatedKat committed Oct 19, 2023
1 parent 66f935b commit 6bbc44b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/displayapp/DisplayApp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,9 @@ void DisplayApp::Refresh() {
case Messages::NotifyDeviceActivity:
lv_disp_trig_activity(nullptr);
break;
case Messages::RestoreBrightness:
RestoreBrightness();
break;
case Messages::GoToRunning:
if (settingsController.GetAlwaysOnDisplay()) {
lcd.LowPowerOff();
Expand Down
1 change: 1 addition & 0 deletions src/displayapp/Messages.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ namespace Pinetime {
BleFirmwareUpdateStarted,
DimScreen,
NotifyDeviceActivity,
RestoreBrightness,
ShowPairingKey,
AlarmTriggered,
Chime,
Expand Down
2 changes: 1 addition & 1 deletion src/systemtask/SystemTask.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ void SystemTask::HandleButtonAction(Controllers::ButtonActions action) {
return;
}

displayApp.PushMessage(Pinetime::Applications::Display::Messages::NotifyDeviceActivity);
displayApp.PushMessage(Pinetime::Applications::Display::Messages::RestoreBrightness);

using Actions = Controllers::ButtonActions;

Expand Down

0 comments on commit 6bbc44b

Please sign in to comment.