From d39798dd5c2cea541e7d0f8fa5c90660ca783fe9 Mon Sep 17 00:00:00 2001 From: k4z4n0v4 <46030560+k4z4n0v4@users.noreply.github.com> Date: Wed, 18 Dec 2024 19:05:52 +0400 Subject: [PATCH] Add calendar menu and transliteration option to all Garmin devices unconditionally. --- .../devices/garmin/GarminCoordinator.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/garmin/GarminCoordinator.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/garmin/GarminCoordinator.java index 572f1d5f4..c2dd946ac 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/garmin/GarminCoordinator.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/garmin/GarminCoordinator.java @@ -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 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;