No way to show() DialogFragment without calling deprecated setTargetFragment() I have been using the following code to display a custom dialog: