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
Answers.getInstance().logCustom(new CustomEvent("AppStart"));
startKeepAliveService();
Thread t = new Thread(new Runnable() {
@Override
public void run() {
SystemClock.sleep(5000);
PumpInterface pump = MainApp.getConfigBuilder();
if (pump != null) {
if (pump != null)
pump.refreshDataFromPump("Initialization");
}
startKeepAliveService();
}
});
}, "pump-initialization");
t.start();
}