title: Why single tap confirmed is called at first instead of double tap?
body: <p>Actually I'm trying to perform two operations with <code>singleTapConfirmed()</code> and <code>doubleTap()</code>.For this I'm using <code>GestureTap</code> class which extends from <code>GestureDetector.SimpleOnGestureListener</code> . Although it's working fine for some devices but in some devices like <code>nougat</code> and <code>oreo</code> it's receiving <code>singleTapConfirmed()</code> first even by <strong>doubleTap</strong>. I wonder how to fix this issue.</p>
  
  <p>Code:</p>
  
  <pre><code>class GestureTap extends GestureDetector.SimpleOnGestureListener {
      private Context ctx;
          public GestureTap(Context ctx) {
              this.ctx = ctx;
      }
  
  
      @Override
      public boolean onDoubleTap(MotionEvent e) {
         Toast.makeText(ctx, ”Double Tap”, Toast.LENGTH_SHORT).show();
          return true;
      }
  
      @Override
      public boolean onSingleTapConfirmed(MotionEvent e) {
       Toast.makeText(ctx, ”Single Tap”, Toast.LENGTH_SHORT).show();
          return true;
      }
  }
  </code></pre>