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

Commit cfcf6af9 authored by Jeff Sharkey's avatar Jeff Sharkey Committed by Android (Google) Code Review
Browse files

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

parents 37dd5240 063f8500
Loading
Loading
Loading
Loading
+9 −0
Original line number Original line Diff line number Diff line
@@ -230,6 +230,15 @@ public class DialogFragment extends Fragment
        ft.commit();
        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
     * Display the dialog, adding the fragment using an existing transaction
     * and then committing the transaction.
     * and then committing the transaction.