1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-27 20:36:51 +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(); Uri eventsUri = eventsUriBuilder.build();
Cursor evtCursor = null; 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()) { if (evtCursor.moveToFirst()) {
do { do {

View File

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