aboutsummaryrefslogtreecommitdiffstats
path: root/src/displayapp/screens/ScreenList.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/displayapp/screens/ScreenList.h')
-rw-r--r--src/displayapp/screens/ScreenList.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/displayapp/screens/ScreenList.h b/src/displayapp/screens/ScreenList.h
index 255544b6..78f32314 100644
--- a/src/displayapp/screens/ScreenList.h
+++ b/src/displayapp/screens/ScreenList.h
@@ -19,7 +19,7 @@ namespace Pinetime {
uint8_t initScreen,
const std::array<std::function<std::unique_ptr<Screen>()>, N>&& screens,
ScreenListModes mode)
- : Screen(app),
+ : app {app},
initScreen {initScreen},
screens {std::move(screens)},
mode {mode},
@@ -102,6 +102,7 @@ namespace Pinetime {
}
private:
+ DisplayApp* app;
uint8_t initScreen = 0;
const std::array<std::function<std::unique_ptr<Screen>()>, N> screens;
ScreenListModes mode = ScreenListModes::UpDown;