Don't re-add mailbox intro fragment after activity got destroyed

This commit is contained in:
Torsten Grote
2022-09-29 16:41:18 -03:00
parent a0de0a40aa
commit abb4d43f14

View File

@@ -104,10 +104,13 @@ public class MailboxActivity extends BriarActivity {
private void onNotSetup() { private void onNotSetup() {
progressBar.setVisibility(INVISIBLE); progressBar.setVisibility(INVISIBLE);
getSupportFragmentManager().beginTransaction() FragmentManager fm = getSupportFragmentManager();
.replace(R.id.fragmentContainer, new SetupIntroFragment(), // If we already have a back stack, fragment state was restored after
SetupIntroFragment.TAG) // activity got killed, so don't re-add our fragment again.
.commit(); if (fm.getBackStackEntryCount() == 0) {
showFragment(fm, new SetupIntroFragment(), SetupIntroFragment.TAG,
false);
}
} }
private void onShowDownload() { private void onShowDownload() {