@@ -38,7 +38,7 @@ SystemInfo::SystemInfo(Pinetime::Applications::DisplayApp* app,
38
38
Pinetime::Drivers::WatchdogView& watchdog,
39
39
Pinetime::Controllers::MotionController& motionController,
40
40
const Pinetime::Drivers::Cst816S& touchPanel)
41
- : Screen( app) ,
41
+ : app {app} ,
42
42
dateTimeController {dateTimeController},
43
43
batteryController {batteryController},
44
44
brightnessController {brightnessController},
@@ -94,7 +94,7 @@ std::unique_ptr<Screen> SystemInfo::CreateScreen1() {
94
94
BootloaderVersion::VersionString ());
95
95
lv_label_set_align (label, LV_LABEL_ALIGN_CENTER);
96
96
lv_obj_align (label, lv_scr_act (), LV_ALIGN_CENTER, 0 , 0 );
97
- return std::make_unique<Screens::Label>(0 , 5 , app, label);
97
+ return std::make_unique<Screens::Label>(0 , 5 , label);
98
98
}
99
99
100
100
std::unique_ptr<Screen> SystemInfo::CreateScreen2 () {
@@ -173,7 +173,7 @@ std::unique_ptr<Screen> SystemInfo::CreateScreen2() {
173
173
touchPanel.GetFwVersion (),
174
174
TARGET_DEVICE_NAME);
175
175
lv_obj_align (label, lv_scr_act (), LV_ALIGN_CENTER, 0 , 0 );
176
- return std::make_unique<Screens::Label>(1 , 5 , app, label);
176
+ return std::make_unique<Screens::Label>(1 , 5 , label);
177
177
}
178
178
179
179
std::unique_ptr<Screen> SystemInfo::CreateScreen3 () {
@@ -204,7 +204,7 @@ std::unique_ptr<Screen> SystemInfo::CreateScreen3() {
204
204
mon.frag_pct ,
205
205
static_cast <int >(mon.free_biggest_size ));
206
206
lv_obj_align (label, lv_scr_act (), LV_ALIGN_CENTER, 0 , 0 );
207
- return std::make_unique<Screens::Label>(2 , 5 , app, label);
207
+ return std::make_unique<Screens::Label>(2 , 5 , label);
208
208
}
209
209
210
210
bool SystemInfo::sortById (const TaskStatus_t& lhs, const TaskStatus_t& rhs) {
@@ -265,7 +265,7 @@ std::unique_ptr<Screen> SystemInfo::CreateScreen4() {
265
265
}
266
266
lv_table_set_cell_value (infoTask, i + 1 , 3 , buffer);
267
267
}
268
- return std::make_unique<Screens::Label>(3 , 5 , app, infoTask);
268
+ return std::make_unique<Screens::Label>(3 , 5 , infoTask);
269
269
}
270
270
271
271
std::unique_ptr<Screen> SystemInfo::CreateScreen5 () {
@@ -282,5 +282,5 @@ std::unique_ptr<Screen> SystemInfo::CreateScreen5() {
282
282
" #FFFF00 InfiniTime#" );
283
283
lv_label_set_align (label, LV_LABEL_ALIGN_CENTER);
284
284
lv_obj_align (label, lv_scr_act (), LV_ALIGN_CENTER, 0 , 0 );
285
- return std::make_unique<Screens::Label>(4 , 5 , app, label);
285
+ return std::make_unique<Screens::Label>(4 , 5 , label);
286
286
}
0 commit comments