Use BriarActivity#signOut() to exit app after updating language

This commit is contained in:
Sebastian Kürten
2021-04-06 07:06:20 +02:00
parent bebf3bbc39
commit c85102fe52
6 changed files with 59 additions and 11 deletions

View File

@@ -179,6 +179,13 @@ class LifecycleManagerImpl implements LifecycleManager, MigrationListener {
LOG.info("Stopping services");
state = STOPPING;
eventBus.broadcast(new LifecycleEvent(STOPPING));
LOG.info("Sleeping a bit to simulate slowness");
try {
Thread.sleep(5000);
} catch (InterruptedException e) {
e.printStackTrace();
}
LOG.info("Done simulating slowness");
for (Service s : services) {
long start = now();
s.stopService();