Use the right column for sorting upcoming events.
Plus add forgotten getQueue
This commit is contained in:
parent
47a34bb7bf
commit
5fb8c7bed8
|
@ -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 {
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue