title: pop up dialog comes twice on double click of edit text
body: <p>actually i am displaying a pop up with ok cancel button when user clicks on edit text.
  My problem is when ever user double clicks on edit text two pop up comes. so if user has selected any value from pop up its second pop up still remain there.</p>
  
  <p>I don't know how to deal with it.</p>
  
  <p>Any help will appreciated. thanks in advance. 
  This is my layout</p>
  
  <pre><code>&lt;EditText
        android:id="@+id/date_control"
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_weight="1" 
        android:background="@drawable/bg_edit_text"
        android:focusableInTouchMode="false"
        android:inputType="none"
        android:editable="false"
        android:clickable="true"
        android:layout_marginRight="5dp" /&gt;
  </code></pre>
  
  <p>My java class calling the controller</p>
  
  <pre><code>datePicker = (EditText) findView(R.id.date_control);
  datePicker.setOnClickListener(myControllerClass);
  </code></pre>
  
  <p>its controller</p>
  
  <pre><code>MyDialog myDialog = new myDialog(activity, "Select Date", 
                      date, DateTimeDialog.DATE_PICKER);
  myDialog.show();
  </code></pre>