mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-18 21:59:54 +01:00
[android] show OpenDatabaseFragment right after signing in
This commit is contained in:
@@ -89,13 +89,9 @@ public class StartupActivity extends BaseActivity implements
|
|||||||
if (!isFragmentAdded(PasswordFragment.TAG)) {
|
if (!isFragmentAdded(PasswordFragment.TAG)) {
|
||||||
showInitialFragment(new PasswordFragment());
|
showInitialFragment(new PasswordFragment());
|
||||||
}
|
}
|
||||||
} else if (state == SIGNED_IN) {
|
} else if (state == SIGNED_IN || state == STARTING) {
|
||||||
startService(new Intent(this, BriarService.class));
|
startService(new Intent(this, BriarService.class));
|
||||||
} else if (state == STARTING) {
|
|
||||||
// Only show OpenDatabaseFragment if not already visible.
|
// 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)) {
|
if (!isFragmentAdded(OpenDatabaseFragment.TAG)) {
|
||||||
showNextFragment(new OpenDatabaseFragment());
|
showNextFragment(new OpenDatabaseFragment());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user