如何在用户 select listpreference 之后不显示首选项对话框

How can I dont show the preference dialog after user select the listpreference

用户在PreferenceFragmant中选择ListPreference列表后。 现在用户需要触摸对话框外的任何 space 才能返回到 mainActivity。 我怎样才能立即返回到 Activity,而不是再次显示对话框?

谢谢:)

ListPreference listPreference = new ListPreference(this); 
Dialog dialog = listPreference.getDialog();

if (dialog != null) {
    dialog.hide();
}