mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-11 18:29:05 +01:00
Don't re-add mailbox intro fragment after activity got destroyed
This commit is contained in:
@@ -104,10 +104,13 @@ public class MailboxActivity extends BriarActivity {
|
||||
|
||||
private void onNotSetup() {
|
||||
progressBar.setVisibility(INVISIBLE);
|
||||
getSupportFragmentManager().beginTransaction()
|
||||
.replace(R.id.fragmentContainer, new SetupIntroFragment(),
|
||||
SetupIntroFragment.TAG)
|
||||
.commit();
|
||||
FragmentManager fm = getSupportFragmentManager();
|
||||
// If we already have a back stack, fragment state was restored after
|
||||
// activity got killed, so don't re-add our fragment again.
|
||||
if (fm.getBackStackEntryCount() == 0) {
|
||||
showFragment(fm, new SetupIntroFragment(), SetupIntroFragment.TAG,
|
||||
false);
|
||||
}
|
||||
}
|
||||
|
||||
private void onShowDownload() {
|
||||
|
||||
Reference in New Issue
Block a user