Add calendar menu and transliteration option to all Garmin devices unconditionally.

This commit is contained in:
k4z4n0v4 2024-12-18 19:05:52 +04:00 committed by José Rebelo
parent 421142ec51
commit d39798dd5c

View File

@ -184,10 +184,20 @@ public abstract class GarminCoordinator extends AbstractBLEDeviceCoordinator {
deviceSpecificSettings.addRootScreen(R.xml.devicesettings_garmin_realtime_settings);
}
if (supportsCalendarEvents()){
deviceSpecificSettings.addRootScreen(
DeviceSpecificSettingsScreen.CALENDAR,
R.xml.devicesettings_header_calendar,
R.xml.devicesettings_sync_calendar
);
}
final List<Integer> notifications = deviceSpecificSettings.addRootScreen(DeviceSpecificSettingsScreen.CALLS_AND_NOTIFICATIONS);
notifications.add(R.xml.devicesettings_send_app_notifications);
notifications.add(R.xml.devicesettings_transliteration);
if (getCannedRepliesSlotCount(device) > 0) {
notifications.add(R.xml.devicesettings_canned_reply_16);
notifications.add(R.xml.devicesettings_canned_dismisscall_16);
@ -217,6 +227,11 @@ public abstract class GarminCoordinator extends AbstractBLEDeviceCoordinator {
return new GarminSettingsCustomizer();
}
@Override
public boolean supportsCalendarEvents() {
return true;
}
@Override
public boolean supportsActivityDataFetching() {
return true;