@@ -361,8 +361,7 @@ void DisplayApp::LoadScreen(Apps app, DisplayApp::FullRefreshDirections directio
361361 break ;
362362 case Apps::None:
363363 case Apps::Clock:
364- currentScreen = std::make_unique<Screens::Clock>(this ,
365- dateTimeController,
364+ currentScreen = std::make_unique<Screens::Clock>(dateTimeController,
366365 batteryController,
367366 bleController,
368367 notificationManager,
@@ -373,18 +372,18 @@ void DisplayApp::LoadScreen(Apps app, DisplayApp::FullRefreshDirections directio
373372 break ;
374373
375374 case Apps::Error:
376- currentScreen = std::make_unique<Screens::Error>(this , bootError);
375+ currentScreen = std::make_unique<Screens::Error>(bootError);
377376 break ;
378377
379378 case Apps::FirmwareValidation:
380- currentScreen = std::make_unique<Screens::FirmwareValidation>(this , validator);
379+ currentScreen = std::make_unique<Screens::FirmwareValidation>(validator);
381380 break ;
382381 case Apps::FirmwareUpdate:
383- currentScreen = std::make_unique<Screens::FirmwareUpdate>(this , bleController);
382+ currentScreen = std::make_unique<Screens::FirmwareUpdate>(bleController);
384383 break ;
385384
386385 case Apps::PassKey:
387- currentScreen = std::make_unique<Screens::PassKey>(this , bleController.GetPairingKey ());
386+ currentScreen = std::make_unique<Screens::PassKey>(bleController.GetPairingKey ());
388387 break ;
389388
390389 case Apps::Notifications:
@@ -404,11 +403,10 @@ void DisplayApp::LoadScreen(Apps app, DisplayApp::FullRefreshDirections directio
404403 Screens::Notifications::Modes::Preview);
405404 break ;
406405 case Apps::Timer:
407- currentScreen = std::make_unique<Screens::Timer>(this , timerController);
406+ currentScreen = std::make_unique<Screens::Timer>(timerController);
408407 break ;
409408 case Apps::Alarm:
410- currentScreen =
411- std::make_unique<Screens::Alarm>(this , alarmController, settingsController.GetClockType (), *systemTask, motorController);
409+ currentScreen = std::make_unique<Screens::Alarm>(alarmController, settingsController.GetClockType (), *systemTask, motorController);
412410 break ;
413411
414412 // Settings
@@ -428,31 +426,31 @@ void DisplayApp::LoadScreen(Apps app, DisplayApp::FullRefreshDirections directio
428426 currentScreen = std::make_unique<Screens::SettingWatchFace>(this , settingsController, filesystem);
429427 break ;
430428 case Apps::SettingTimeFormat:
431- currentScreen = std::make_unique<Screens::SettingTimeFormat>(this , settingsController);
429+ currentScreen = std::make_unique<Screens::SettingTimeFormat>(settingsController);
432430 break ;
433431 case Apps::SettingWakeUp:
434- currentScreen = std::make_unique<Screens::SettingWakeUp>(this , settingsController);
432+ currentScreen = std::make_unique<Screens::SettingWakeUp>(settingsController);
435433 break ;
436434 case Apps::SettingDisplay:
437435 currentScreen = std::make_unique<Screens::SettingDisplay>(this , settingsController);
438436 break ;
439437 case Apps::SettingSteps:
440- currentScreen = std::make_unique<Screens::SettingSteps>(this , settingsController);
438+ currentScreen = std::make_unique<Screens::SettingSteps>(settingsController);
441439 break ;
442440 case Apps::SettingSetDateTime:
443441 currentScreen = std::make_unique<Screens::SettingSetDateTime>(this , dateTimeController, settingsController);
444442 break ;
445443 case Apps::SettingChimes:
446- currentScreen = std::make_unique<Screens::SettingChimes>(this , settingsController);
444+ currentScreen = std::make_unique<Screens::SettingChimes>(settingsController);
447445 break ;
448446 case Apps::SettingShakeThreshold:
449- currentScreen = std::make_unique<Screens::SettingShakeThreshold>(this , settingsController, motionController, *systemTask);
447+ currentScreen = std::make_unique<Screens::SettingShakeThreshold>(settingsController, motionController, *systemTask);
450448 break ;
451449 case Apps::SettingBluetooth:
452450 currentScreen = std::make_unique<Screens::SettingBluetooth>(this , settingsController);
453451 break ;
454452 case Apps::BatteryInfo:
455- currentScreen = std::make_unique<Screens::BatteryInfo>(this , batteryController);
453+ currentScreen = std::make_unique<Screens::BatteryInfo>(batteryController);
456454 break ;
457455 case Apps::SysInfo:
458456 currentScreen = std::make_unique<Screens::SystemInfo>(this ,
@@ -465,37 +463,37 @@ void DisplayApp::LoadScreen(Apps app, DisplayApp::FullRefreshDirections directio
465463 touchPanel);
466464 break ;
467465 case Apps::FlashLight:
468- currentScreen = std::make_unique<Screens::FlashLight>(this , *systemTask, brightnessController);
466+ currentScreen = std::make_unique<Screens::FlashLight>(*systemTask, brightnessController);
469467 break ;
470468 case Apps::StopWatch:
471- currentScreen = std::make_unique<Screens::StopWatch>(this , *systemTask);
469+ currentScreen = std::make_unique<Screens::StopWatch>(*systemTask);
472470 break ;
473471 case Apps::Twos:
474- currentScreen = std::make_unique<Screens::Twos>(this );
472+ currentScreen = std::make_unique<Screens::Twos>();
475473 break ;
476474 case Apps::Paint:
477- currentScreen = std::make_unique<Screens::InfiniPaint>(this , lvgl, motorController);
475+ currentScreen = std::make_unique<Screens::InfiniPaint>(lvgl, motorController);
478476 break ;
479477 case Apps::Paddle:
480- currentScreen = std::make_unique<Screens::Paddle>(this , lvgl);
478+ currentScreen = std::make_unique<Screens::Paddle>(lvgl);
481479 break ;
482480 case Apps::Music:
483- currentScreen = std::make_unique<Screens::Music>(this , systemTask->nimble ().music ());
481+ currentScreen = std::make_unique<Screens::Music>(systemTask->nimble ().music ());
484482 break ;
485483 case Apps::Navigation:
486- currentScreen = std::make_unique<Screens::Navigation>(this , systemTask->nimble ().navigation ());
484+ currentScreen = std::make_unique<Screens::Navigation>(systemTask->nimble ().navigation ());
487485 break ;
488486 case Apps::HeartRate:
489- currentScreen = std::make_unique<Screens::HeartRate>(this , heartRateController, *systemTask);
487+ currentScreen = std::make_unique<Screens::HeartRate>(heartRateController, *systemTask);
490488 break ;
491489 case Apps::Metronome:
492- currentScreen = std::make_unique<Screens::Metronome>(this , motorController, *systemTask);
490+ currentScreen = std::make_unique<Screens::Metronome>(motorController, *systemTask);
493491 break ;
494492 case Apps::Motion:
495- currentScreen = std::make_unique<Screens::Motion>(this , motionController);
493+ currentScreen = std::make_unique<Screens::Motion>(motionController);
496494 break ;
497495 case Apps::Steps:
498- currentScreen = std::make_unique<Screens::Steps>(this , motionController, settingsController);
496+ currentScreen = std::make_unique<Screens::Steps>(motionController, settingsController);
499497 break ;
500498 }
501499 currentApp = app;
0 commit comments