summaryrefslogtreecommitdiff
path: root/src/displayapp/screens/FlashLight.h
diff options
context:
space:
mode:
authorMichele Bini <michele.bini@gmail.com>2022-04-14 12:01:14 (GMT)
committerMichele Bini <michele.bini@gmail.com>2022-04-14 13:05:53 (GMT)
commit28f45caa11e0adbb208ba65b88b7ea399d584ba7 (patch)
treeeeb7b68e39665ad541bb3837c2ea973041b941af /src/displayapp/screens/FlashLight.h
parent2607c3d79947e900ce4c5ded296f649677511a34 (diff)
Reduce battery usage by turning the backlight back to the normal setting when the flashlight is turned off by tapping the screen.
Start the app with the flashlight on. Simplify code.
Diffstat (limited to 'src/displayapp/screens/FlashLight.h')
-rw-r--r--src/displayapp/screens/FlashLight.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/displayapp/screens/FlashLight.h b/src/displayapp/screens/FlashLight.h
index e91a103..76dda78 100644
--- a/src/displayapp/screens/FlashLight.h
+++ b/src/displayapp/screens/FlashLight.h
@@ -20,8 +20,7 @@ namespace Pinetime {
void OnClickEvent(lv_obj_t* obj, lv_event_t event);
private:
- void SetIndicators();
- void SetColors();
+ void Update(bool on, Pinetime::Controllers::BrightnessController::Levels level);
Pinetime::System::SystemTask& systemTask;
Controllers::BrightnessController& brightnessController;