1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-23 18:36:50 +01:00

Use the right column for sorting upcoming events.

Plus add forgotten getQueue
This commit is contained in:
danielegobbetti 2015-12-18 18:49:29 +01:00
parent 47a34bb7bf
commit 5fb8c7bed8
2 changed files with 2 additions and 1 deletions

View File

@ -55,7 +55,7 @@ public class CalendarEvents {
Uri eventsUri = eventsUriBuilder.build();
Cursor evtCursor = null;
evtCursor = mContext.getContentResolver().query(eventsUri, EVENT_INSTANCE_PROJECTION, null, null, CalendarContract.Instances.DTSTART + " ASC");
evtCursor = mContext.getContentResolver().query(eventsUri, EVENT_INSTANCE_PROJECTION, null, null, CalendarContract.Instances.BEGIN + " ASC");
if (evtCursor.moveToFirst()) {
do {

View File

@ -834,6 +834,7 @@ public class MiBandSupport extends AbstractBTLEDeviceSupport {
builder.write(characteristic, alarmMessage);
iteration++;
}
builder.queue(getQueue());
}
} catch (IOException ex) {
LOG.error("Unable to send Events to MI device", ex);