Start KeepAliveService after pump init.
This commit is contained in:
parent
ec383bb082
commit
68a3dbbf33
1 changed files with 3 additions and 6 deletions
|
@ -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();
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue