1
0
mirror of https://github.com/etesync/android synced 2025-07-13 18:18:21 +00:00

Don't use uid2445 column on Android <4.2; alarm ACTION: compare only value (ignore parameters)

This commit is contained in:
Ricki Hirner 2017-02-17 09:55:01 +01:00 committed by Tom Hacohen
parent f1ea00d816
commit 433484626f

View File

@ -139,7 +139,7 @@ public class LocalEvent extends AndroidEvent implements LocalResource {
public void prepareForUpload() throws CalendarStorageException { public void prepareForUpload() throws CalendarStorageException {
try { try {
String uid = null; String uid = null;
@Cleanup Cursor c = calendar.provider.query(eventSyncURI(), new String[] { Events.UID_2445 }, null, null, null); @Cleanup Cursor c = calendar.provider.query(eventSyncURI(), new String[] { COLUMN_UID }, null, null, null);
if (c.moveToNext()) if (c.moveToNext())
uid = c.getString(0); uid = c.getString(0);
if (uid == null) if (uid == null)