loadEvents after bolus in separate thread

This commit is contained in:
Milos Kozak 2017-09-18 20:54:53 +02:00
parent 42ee7c668e
commit 8785bc63d5

View file

@ -428,9 +428,17 @@ public class DanaRv2ExecutionService extends Service {
}
}
}
waitMsec(3000);
bolusingTreatment = null;
loadEvents();
// run loading history in separate thread and allow bolus dialog to be closed
new Thread(new Runnable() {
@Override
public void run() {
waitMsec(4000);
if (!(isConnected()))
connect("loadEvents");
loadEvents();
}
}).start();
return true;
}