1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-27 02:55:50 +01:00

Huawei: Fixed calendar event deletion when birthday sync is enabled.

This commit is contained in:
Me7c7 2024-10-03 18:32:51 +03:00
parent 3c40f3a9d7
commit 2ee17bd52f
2 changed files with 2 additions and 2 deletions

View File

@ -178,7 +178,7 @@ public class HuaweiP2PCalendarService extends HuaweiBaseP2PService {
ret.addProperty("all_day", calendarEvent.isAllDay() ? 1 : 0); ret.addProperty("all_day", calendarEvent.isAllDay() ? 1 : 0);
ret.addProperty("calendar_color", calendarEvent.getColor()); ret.addProperty("calendar_color", calendarEvent.getColor());
ret.addProperty("calendar_displayName", truncateToHexBytes(calendarEvent.getCalName(), 64)); ret.addProperty("calendar_displayName", truncateToHexBytes(calendarEvent.getCalName(), 64));
ret.addProperty("calendar_id", valueOrEmpty(calendarEvent.getCalendarId(), "")); ret.addProperty("calendar_id", valueOrEmpty(calendarEvent.getCalendarId(), "0"));
ret.addProperty("description", truncateToHexBytes(calendarEvent.getDescription(), 512)); ret.addProperty("description", truncateToHexBytes(calendarEvent.getDescription(), 512));
ret.addProperty("dtend", calendarEvent.getEnd()); ret.addProperty("dtend", calendarEvent.getEnd());
ret.addProperty("dtstart", calendarEvent.getBegin()); ret.addProperty("dtstart", calendarEvent.getBegin());

View File

@ -224,7 +224,7 @@ public class CalendarManager {
0, 0,
true, true,
null, null,
null, CalendarContract.ACCOUNT_TYPE_LOCAL,
null, null,
null null
)); ));