Always restore brightness on app switch (#1213)
This commit is contained in:
parent
fdad3fc985
commit
cea81fea9c
|
@ -130,7 +130,6 @@ void DisplayApp::InitHw() {
|
|||
|
||||
void DisplayApp::Refresh() {
|
||||
auto LoadPreviousScreen = [this]() {
|
||||
brightnessController.Set(settingsController.GetBrightness());
|
||||
LoadApp(returnToApp, returnDirection);
|
||||
};
|
||||
|
||||
|
@ -302,6 +301,8 @@ void DisplayApp::ReturnApp(Apps app, DisplayApp::FullRefreshDirections direction
|
|||
|
||||
void DisplayApp::LoadApp(Apps app, DisplayApp::FullRefreshDirections direction) {
|
||||
touchHandler.CancelTap();
|
||||
brightnessController.Set(settingsController.GetBrightness());
|
||||
|
||||
currentScreen.reset(nullptr);
|
||||
SetFullRefresh(direction);
|
||||
|
||||
|
|
Loading…
Reference in a new issue