re-show mailbox unpaired dialog after screen-rotation

This commit is contained in:
Torsten Grote
2022-09-29 14:52:30 -03:00
parent a0de0a40aa
commit c049c9c370

View File

@@ -79,6 +79,17 @@ public class MailboxActivity extends BriarActivity {
throw new AssertionError("Unknown state: " + state);
}
});
// re-show unpaired dialog, if it was previously shown
// Attention: When using BlankFragment for something else, this needs to
// be adapted.
if (savedInstanceState != null) {
FragmentManager fm = getSupportFragmentManager();
Fragment f = fm.findFragmentByTag(BlankFragment.TAG);
if (f != null && f.isAdded()) {
onUnPaired(true);
}
}
}
@Override