screens: Remove displayapp parameter from screen
The DisplayApp class isn't used in the Screen base class and most screens, so requiring it is pointless. In this commit, DisplayApp pointers were added to screens which use it and the explicit Screen constructor was removed in those screens.
This commit is contained in:
parent
e2d4084701
commit
7c7a8602c4
30 changed files with 44 additions and 29 deletions
|
|
@ -34,7 +34,7 @@ QuickSettings::QuickSettings(Pinetime::Applications::DisplayApp* app,
|
|||
Controllers::MotorController& motorController,
|
||||
Pinetime::Controllers::Settings& settingsController,
|
||||
const Controllers::Ble& bleController)
|
||||
: Screen(app),
|
||||
: app {app},
|
||||
dateTimeController {dateTimeController},
|
||||
brightness {brightness},
|
||||
motorController {motorController},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue