|
|
@ -30,14 +30,14 @@ WatchFaceAnalog::WatchFaceAnalog(Pinetime::Applications::DisplayApp* app,
|
|
|
|
Controllers::DateTime& dateTimeController,
|
|
|
|
Controllers::DateTime& dateTimeController,
|
|
|
|
Controllers::Battery& batteryController,
|
|
|
|
Controllers::Battery& batteryController,
|
|
|
|
Controllers::Ble& bleController,
|
|
|
|
Controllers::Ble& bleController,
|
|
|
|
Controllers::NotificationManager& notificatioManager,
|
|
|
|
Controllers::NotificationManager& notificationManager,
|
|
|
|
Controllers::Settings& settingsController)
|
|
|
|
Controllers::Settings& settingsController)
|
|
|
|
: Screen(app),
|
|
|
|
: Screen(app),
|
|
|
|
currentDateTime {{}},
|
|
|
|
currentDateTime {{}},
|
|
|
|
dateTimeController {dateTimeController},
|
|
|
|
dateTimeController {dateTimeController},
|
|
|
|
batteryController {batteryController},
|
|
|
|
batteryController {batteryController},
|
|
|
|
bleController {bleController},
|
|
|
|
bleController {bleController},
|
|
|
|
notificatioManager {notificatioManager},
|
|
|
|
notificationManager {notificationManager},
|
|
|
|
settingsController {settingsController} {
|
|
|
|
settingsController {settingsController} {
|
|
|
|
settingsController.SetClockFace(1);
|
|
|
|
settingsController.SetClockFace(1);
|
|
|
|
|
|
|
|
|
|
|
@ -172,7 +172,7 @@ bool WatchFaceAnalog::Refresh() {
|
|
|
|
lv_label_set_text(batteryIcon, BatteryIcon::GetBatteryIcon(batteryPercent));
|
|
|
|
lv_label_set_text(batteryIcon, BatteryIcon::GetBatteryIcon(batteryPercent));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
notificationState = notificatioManager.AreNewNotificationsAvailable();
|
|
|
|
notificationState = notificationManager.AreNewNotificationsAvailable();
|
|
|
|
|
|
|
|
|
|
|
|
if (notificationState.IsUpdated()) {
|
|
|
|
if (notificationState.IsUpdated()) {
|
|
|
|
if (notificationState.Get() == true)
|
|
|
|
if (notificationState.Get() == true)
|
|
|
@ -202,4 +202,4 @@ bool WatchFaceAnalog::Refresh() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|