diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/banglejs/BangleJSCoordinator.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/banglejs/BangleJSCoordinator.java index ba1c973ef..8fdfc3489 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/banglejs/BangleJSCoordinator.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/banglejs/BangleJSCoordinator.java @@ -185,6 +185,7 @@ public class BangleJSCoordinator extends AbstractBLEDeviceCoordinator { if (BuildConfig.INTERNET_ACCESS) settings.add(R.xml.devicesettings_device_internet_access); settings.add(R.xml.devicesettings_device_intents); + settings.add(R.xml.devicesettings_sync_calendar); // must be a better way of doing this? int[] settingsInt = new int[settings.size()]; for (int i=0; i idsList = new ArrayList(ids.length()); @@ -1290,14 +1291,14 @@ public class BangleJSDeviceSupport extends AbstractBTLEDeviceSupport { int availableSlots = 6; try { - CalendarEvents upcomingEvents = new CalendarEvents(); - List mEvents = upcomingEvents.getCalendarEventList(getContext()); + CalendarManager upcomingEvents = new CalendarManager(getContext(), getDevice().getAddress()); + List mEvents = upcomingEvents.getCalendarEventList(); JSONObject cal = new JSONObject(); JSONArray events = new JSONArray(); cal.put("t", "calendarevents"); - for (CalendarEvents.CalendarEvent mEvt : mEvents) { + for (CalendarEvent mEvt : mEvents) { if(availableSlots<1) break; JSONObject o = new JSONObject(); o.put("timestamp", mEvt.getBeginSeconds()); diff --git a/app/src/main/res/values-it/strings.xml b/app/src/main/res/values-it/strings.xml index 1635ce55f..64224d0bf 100644 --- a/app/src/main/res/values-it/strings.xml +++ b/app/src/main/res/values-it/strings.xml @@ -145,8 +145,6 @@ In collegamento Connesso (sconosciuto) - Impostazioni Bangle.js - Timeline Bangle.js Test Notifica di prova Notifica di prova creata da Gadgetbridge diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index d1d534520..96f31ed26 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -289,8 +289,6 @@ Allow apps on this device to access the internet Allow Intents Allow Bangle.js watch apps to send Android Intents, and allow other apps on Android (like Tasker) to send data to Bangle.js with the com.banglejs.uart.tx Intent. - Bangle.js settings - Bangle.js timeline Enables calendar alerts, even when disconnected Sync calendar events Relax firmware checks diff --git a/app/src/main/res/xml/preferences.xml b/app/src/main/res/xml/preferences.xml index f21293707..2ca7885e1 100644 --- a/app/src/main/res/xml/preferences.xml +++ b/app/src/main/res/xml/preferences.xml @@ -294,27 +294,6 @@ android:title="Emulator Port" /> - - - - - - -