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

Commit 08f73298 authored by Yorke Lee's avatar Yorke Lee Committed by Android (Google) Code Review
Browse files

Merge "Don't do fragment transactions if fragment is destroyed" into klp-dev

parents e2be8b42 3487db78
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);