Code example for LinkedList

Methods: clear

0
            event = mEventQueue.poll();
        } 
    } 
 
    public void clearEventQueue() { 
        mEventQueue.clear();
    } 
 
    @Override 
    public boolean onTouchEvent(MotionEvent event) {
        if (mController.onTouchEvent(event)) {
            addToEventQueue(event);
            return true; 
        } 
        return processEvent(event);
    } 
 
    private boolean processEvent(MotionEvent event) {
        if (mGestureDetector.onTouchEvent(event))
            return true; 
        mScaleGestureDetector.onTouchEvent(event);