Specific Double Tap
<p>I have zoomable image and I'm using <code>ScaleGestureDetector.SimpleOnScaleGestureListener</code>. I need to implement following items:</p>

<ol>
<li>On Single Tap appear Toast with information about picture. </li>
<li>On Double Tap image is zooming.</li>
</ol>

<p>I have some issue. Before Double Tap always is Single Tap and picture is zooming, but appear Toast. Is there any way to avoid Single Tap? I dont have enough savvy to solve this problem.</p>

<p><strong>P.S.</strong> I <strong>can't use <code>OnDoubleTapListener</code></strong> because use <code>ScaleGestureDetector.SimpleOnScaleGestureListener</code>.</p>

<p><strong>UPD</strong></p>

<pre><code>case MotionEvent.ACTION_UP:
    firstTime = System.currentTimeMillis();
    if (Math.abs(firstTime-secondTime) &lt; 300L) {
    // scale my matrix
    ---//---
    DONE = true; //this flag symbolize, that toast doesn't appear (false - appears)
    }
    else if (!DONE) {
         // making toast
    }
    secondTime = firstTime;
    break;
</code></pre>

<p>When DoubleTap is enable image scaled but appears toast</p>
