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