[android] show OpenDatabaseFragment right after signing in

This commit is contained in:
Torsten Grote
2019-05-16 13:40:30 -03:00
parent 99000d8eab
commit f0bd18c4d6

View File

@@ -89,13 +89,9 @@ public class StartupActivity extends BaseActivity implements
if (!isFragmentAdded(PasswordFragment.TAG)) {
showInitialFragment(new PasswordFragment());
}
} else if (state == SIGNED_IN) {
} else if (state == SIGNED_IN || state == STARTING) {
startService(new Intent(this, BriarService.class));
} else if (state == STARTING) {
// Only show OpenDatabaseFragment if not already visible.
// This can happen because several LifecycleManager states are
// mapped to STARTING, so this can get called several times
// as the app's lifecycle advances.
if (!isFragmentAdded(OpenDatabaseFragment.TAG)) {
showNextFragment(new OpenDatabaseFragment());
}