mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-06-05 21:49:48 +02:00
Huami: Igore all-day events when syncing calendar events
This commit is contained in:
@@ -1697,6 +1697,9 @@ public class HuamiSupport extends AbstractBTLEDeviceSupport {
|
|||||||
int iteration = 0;
|
int iteration = 0;
|
||||||
|
|
||||||
for (CalendarEvents.CalendarEvent mEvt : mEvents) {
|
for (CalendarEvents.CalendarEvent mEvt : mEvents) {
|
||||||
|
if (mEvt.isAllDay()) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
if (iteration >= availableSlots || iteration > 2) {
|
if (iteration >= availableSlots || iteration > 2) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -1724,6 +1727,10 @@ public class HuamiSupport extends AbstractBTLEDeviceSupport {
|
|||||||
int iteration = 0;
|
int iteration = 0;
|
||||||
|
|
||||||
for (CalendarEvents.CalendarEvent calendarEvent : calendarEvents) {
|
for (CalendarEvents.CalendarEvent calendarEvent : calendarEvents) {
|
||||||
|
if (calendarEvent.isAllDay()) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if (iteration > 8) { // limit ?
|
if (iteration > 8) { // limit ?
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user