title: DialogFragment setCancelable property not working
body: <p>I am working in an android application and am using a DialogFragment to show a dialog and I want to make that DialogFragment not cancelable. I have made the dialog cancelable property to false, but still its not affecting.</p>
  
  <p>Please look into my code and suggest me a solution.</p>
  
  <pre><code>public class DialogTest extends DialogFragment {
  
      @Override
      public Dialog onCreateDialog(Bundle savedInstanceState) {
  
          return super.onCreateDialog(savedInstanceState);
      }
  
      @Override
      public View onCreateView(LayoutInflater inflater, ViewGroup container,
              Bundle savedInstanceState) {
          View view = inflater.inflate(R.layout.dialog_test, container, true);
          getDialog().requestWindowFeature(STYLE_NO_TITLE);
          getDialog().setCancelable(false);
  
          return view;
      }
   }
  </code></pre>