Code example for ScaleGestureDetector

Methods: getCurrentSpan

0
        if (MotionEvent.ACTION_DOWN == m.getActionMasked()) {
            if (checkReceivers(m)) {
                mMode = MODE_MODULE;
                return mActivity.superDispatchTouchEvent(m);
            } else { 
                mMode = MODE_ALL;
                mDown = MotionEvent.obtain(m);
                if (mPie != null && mPie.showsItems()) {
                    mMode = MODE_PIE;
                    return sendToPie(m);
                } 
                if (mPie != null && !mZoomOnly) {
                    mHandler.sendEmptyMessageDelayed(MSG_PIE, TIMEOUT_PIE);
                } 
                if (mZoom != null) {
                    mScale.onTouchEvent(m);
                } 
                // make sure this is ok 
                return mActivity.superDispatchTouchEvent(m);
            } 
        } else if (mMode == MODE_NONE) {