display the performed operation

This commit is contained in:
Andrei Vereha 2021-11-11 17:41:19 +01:00
parent d5ae4cabf2
commit 229285ed4d

View file

@ -111,14 +111,18 @@ class QueueThread internal constructor(
// Pickup 1st command and set performing variable
if (queue.size() > 0) {
queue.pickup()
if (queue.performing() != null) {
aapsLogger.debug(LTag.PUMPQUEUE, "performing " + queue.performing()?.status())
val cont = queue.performing()?.let {
aapsLogger.debug(LTag.PUMPQUEUE, "performing " + it.status())
rxBus.send(EventQueueChanged())
queue.performing()?.execute()
rxBus.send(EventPumpStatusChanged(it.status()))
it.execute()
queue.resetPerforming()
rxBus.send(EventQueueChanged())
lastCommandTime = System.currentTimeMillis()
SystemClock.sleep(100)
true
} ?: false
if (cont) {
continue
}
}