title: Dialog open twice on fast click of button
body: <p>I have <code>Button</code>, which on clicking, displays a <code>Dialog</code>. Everything works like a charm, but if I double click the button or click the button fast, the <code>Dialog</code> opens two or three times. I have to click the back button twice or thrice to dismiss the <code>Dialog</code>.</p>
  
  <p>I have searched for related questions on <em>SO</em>, but most of the answers suggest <strong>disabling the button or to use a variable and setting it to true and false</strong>, which is not my requirement.</p>
  
  <p>If anyone knows how to solve this problem, please help me.</p>
  
  <p><strong>Code I have used</strong></p>
  
  <pre><code>// Delete item on click of delete button
  holder.butDelete.setOnClickListener(new OnClickListener() {         
  @Override
      public void onClick(View v) {
          Dialog passwordDialog = new Dialog(SettingsActivity.this);      
          passwordDialog.show();
      }
  });
  </code></pre>