mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-01-25 16:15:55 +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;
|
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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user