mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-12-24 17:45:50 +01:00
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();
|
||||
|
||||
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 {
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user