[android] stop livecycle before delete app data and exit cleanly

Fixes #1380
This commit is contained in:
Torsten Grote
2019-03-01 16:49:19 -03:00
parent dbe46d60fd
commit 31d3324701
4 changed files with 56 additions and 18 deletions

View File

@@ -168,6 +168,7 @@ class LifecycleManagerImpl implements LifecycleManager, MigrationListener {
@Override
public void stopServices() {
if (state == STOPPING) return;
try {
startStopSemaphore.acquire();
} catch (InterruptedException e) {