diff options
| author | panky-codes <pankaj.sarathy1992@gmail.com> | 2021-03-20 21:45:29 (GMT) |
|---|---|---|
| committer | panky-codes <pankaj.sarathy1992@gmail.com> | 2021-03-20 21:45:29 (GMT) |
| commit | 534565088033221d29e968acf7267145ff10203b (patch) | |
| tree | c93ae7c7aa7995204f56b979ff6524feba83763d /src/displayapp/screens/ApplicationList.cpp | |
| parent | 754ac233040af805ffa2e15b24539d5d02a876e5 (diff) | |
| parent | a3ff2e46ca9e663af864a2bd04b9afa3efbddfb8 (diff) | |
Merged upstream
Diffstat (limited to 'src/displayapp/screens/ApplicationList.cpp')
| -rw-r--r-- | src/displayapp/screens/ApplicationList.cpp | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/src/displayapp/screens/ApplicationList.cpp b/src/displayapp/screens/ApplicationList.cpp index f9ff49e..dd9cb2a 100644 --- a/src/displayapp/screens/ApplicationList.cpp +++ b/src/displayapp/screens/ApplicationList.cpp @@ -8,13 +8,18 @@ using namespace Pinetime::Applications::Screens; -ApplicationList::ApplicationList(Pinetime::Applications::DisplayApp *app) : +ApplicationList::ApplicationList(Pinetime::Applications::DisplayApp *app, + Pinetime::Controllers::Settings &settingsController) : Screen(app), - screens{app, { + settingsController{settingsController}, + screens{app, + settingsController.GetAppMenu(), + { [this]() -> std::unique_ptr<Screen> { return CreateScreen1(); }, [this]() -> std::unique_ptr<Screen> { return CreateScreen2(); }, //[this]() -> std::unique_ptr<Screen> { return CreateScreen3(); } - } + }, + Screens::ScreenListModes::UpDown } {} @@ -51,7 +56,7 @@ std::unique_ptr<Screen> ApplicationList::CreateScreen1() { }; - return std::unique_ptr<Screen>(new Screens::Tile(app, applications)); + return std::unique_ptr<Screen>(new Screens::Tile(0, app, settingsController, applications)); } std::unique_ptr<Screen> ApplicationList::CreateScreen2() { @@ -65,7 +70,7 @@ std::unique_ptr<Screen> ApplicationList::CreateScreen2() { } }; - return std::unique_ptr<Screen>(new Screens::Tile(app, applications)); + return std::unique_ptr<Screen>(new Screens::Tile(1, app, settingsController, applications)); } std::unique_ptr<Screen> ApplicationList::CreateScreen3() { @@ -79,6 +84,6 @@ std::unique_ptr<Screen> ApplicationList::CreateScreen3() { } }; - return std::unique_ptr<Screen>(new Screens::Tile(app, applications)); + return std::unique_ptr<Screen>(new Screens::Tile(2, app, settingsController, applications)); } |
