mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-16 12:49:55 +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() {
|
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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user