aboutsummaryrefslogtreecommitdiffstats
path: root/src/displayapp/screens/FlashLight.cpp
diff options
context:
space:
mode:
authorRiku Isokoski <riksu9000@gmail.com>2022-06-18 12:54:41 +0300
committerGitHub <noreply@github.com>2022-06-18 12:54:41 +0300
commit95ff285991d399498d9bd7f60a503ef7665822ce (patch)
tree28a2f8487c79ee5ba1e8b2eff39a2aff6f72fc81 /src/displayapp/screens/FlashLight.cpp
parent9b775c6a91b91531edda67892b93041e5fb3f882 (diff)
Remove backup brightness feature (#1180)
This feature is not needed and is probably more likely to cause issues. It's better to just use brightnessController.Set(settingsController.GetBrightness());
Diffstat (limited to 'src/displayapp/screens/FlashLight.cpp')
-rw-r--r--src/displayapp/screens/FlashLight.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/displayapp/screens/FlashLight.cpp b/src/displayapp/screens/FlashLight.cpp
index 2a1884f6..8a10ee8d 100644
--- a/src/displayapp/screens/FlashLight.cpp
+++ b/src/displayapp/screens/FlashLight.cpp
@@ -14,12 +14,7 @@ namespace {
FlashLight::FlashLight(Pinetime::Applications::DisplayApp* app,
System::SystemTask& systemTask,
Controllers::BrightnessController& brightnessController)
- : Screen(app),
- systemTask {systemTask},
- brightnessController {brightnessController}
-
-{
- brightnessController.Backup();
+ : Screen(app), systemTask {systemTask}, brightnessController {brightnessController} {
brightnessLevel = brightnessController.Level();
@@ -56,7 +51,6 @@ FlashLight::FlashLight(Pinetime::Applications::DisplayApp* app,
FlashLight::~FlashLight() {
lv_obj_clean(lv_scr_act());
lv_obj_set_style_local_bg_color(lv_scr_act(), LV_OBJ_PART_MAIN, LV_STATE_DEFAULT, LV_COLOR_BLACK);
- brightnessController.Restore();
systemTask.PushMessage(Pinetime::System::Messages::EnableSleeping);
}