mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-01-10 17:11:56 +01:00
Add calendar menu and transliteration option to all Garmin devices unconditionally.
This commit is contained in:
parent
421142ec51
commit
d39798dd5c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user