Start KeepAliveService after pump init.

This commit is contained in:
Johannes Mockenhaupt 2017-10-25 17:49:23 +02:00
parent ec383bb082
commit 68a3dbbf33
No known key found for this signature in database
GPG key ID: 9E1EA6AF7BBBB0D1

View file

@ -169,19 +169,16 @@ public class MainApp extends Application {
else else
Answers.getInstance().logCustom(new CustomEvent("AppStart")); Answers.getInstance().logCustom(new CustomEvent("AppStart"));
startKeepAliveService();
Thread t = new Thread(new Runnable() { Thread t = new Thread(new Runnable() {
@Override @Override
public void run() { public void run() {
SystemClock.sleep(5000); SystemClock.sleep(5000);
PumpInterface pump = MainApp.getConfigBuilder(); PumpInterface pump = MainApp.getConfigBuilder();
if (pump != null) { if (pump != null)
pump.refreshDataFromPump("Initialization"); pump.refreshDataFromPump("Initialization");
startKeepAliveService();
} }
} }, "pump-initialization");
});
t.start(); t.start();
} }