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

Commit b53738f7 authored by Jeff Sharkey's avatar Jeff Sharkey Committed by Android Git Automerger
Browse files

am cfcf6af9: Merge "Method to show DialogFragment allowing state loss." into mnc-dev

* commit 'cfcf6af9':
  Method to show DialogFragment allowing state loss.
parents 619bbdf4 cfcf6af9
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -230,6 +230,15 @@ public class DialogFragment extends Fragment
        ft.commit();
    }

    /** {@hide} */
    public void showAllowingStateLoss(FragmentManager manager, String tag) {
        mDismissed = false;
        mShownByMe = true;
        FragmentTransaction ft = manager.beginTransaction();
        ft.add(this, tag);
        ft.commitAllowingStateLoss();
    }

    /**
     * Display the dialog, adding the fragment using an existing transaction
     * and then committing the transaction.