How to disable GestureListener in android?
<p>I have implemented GestureListener, and it is working perfectly, but how can I remove GestureListener from my view?</p>

<pre><code>@Override
public boolean onTouchEvent(MotionEvent event) {
    if ( event.getAction() == MotionEvent.ACTION_UP ) {
        //   remove gestureDetector
    } else {
        mGestureDetector.onTouchEvent(event);
    }
    return true;
}
</code></pre>

<p>Regards,
Nishant Shah</p>
