Skip to content

Commit

Permalink
Call setTargetFragment unconditionally
Browse files Browse the repository at this point in the history
  • Loading branch information
Mygod committed Nov 9, 2017
1 parent 9cf0b81 commit 5700aa5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ protected void displayPreferenceDialog(Fragment fragment, String key, Bundle bun
b.putString("key", key);
if (fragment != null) {
fragment.setArguments(b);
fragment.setTargetFragment(this, 0);
if (fragment instanceof DialogFragment) {
fragment.setTargetFragment(this, 0);
((DialogFragment) fragment).show(this.getFragmentManager(), FRAGMENT_DIALOG_TAG);
} else {
this.getFragmentManager()
Expand Down

0 comments on commit 5700aa5

Please sign in to comment.