title: How to keep DialogFragment visible after onClick on its adapter?
body: <p>I have a <code>DialogFragment</code> with associated <code>SimpleAdapter</code> which listen for clicks. When I click on any item within a <code>ListView</code> the <code>DialogFragment</code> dismiss itself. How to keep it visible?</p>
  
  <pre><code>public Dialog onCreateDialog(Bundle savedInstanceState) {
          AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());
          builder.setTitle(getResources().getString(R.string.choose_file_for_import));
          mAdapter = new MAdapter(getActivity(), R.id.file_explorer_tv_filename, itemsList);
  
          builder.setAdapter(mAdapter, new DialogInterface.OnClickListener() {
  
              @Override
              public void onClick(DialogInterface dialogInterface, int position) {
                  File file = new File(pathList.get(position));
  
                          getDir(pathList.get(position));
                          mAdapter.notifyDataSetChanged();
      }
      return builder.create();
      }
  </code></pre>