loadEvents after bolus in separate thread
This commit is contained in:
parent
42ee7c668e
commit
8785bc63d5
1 changed files with 10 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue