Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3487db78 authored by Yorke Lee's avatar Yorke Lee
Browse files

Don't do fragment transactions if fragment is destroyed

Bug: 10953115
Change-Id: Idf8107ca9b49b31d2209751a09daabadacfc752b
parent 36df59e0
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -858,6 +858,10 @@ public class DialtactsActivity extends TransactionSafeActivity implements View.O
     * Hides the search fragment
     */
    private void exitSearchUi() {
        // See related bug in enterSearchUI();
        if (getFragmentManager().isDestroyed()) {
            return;
        }
        // Go all the way back to the favorites fragment, regardless of how many times we
        // transitioned between search fragments
        final BackStackEntry entry = getFragmentManager().getBackStackEntryAt(0);