wear/src/main/java/com/geekyouup/android/ustopwatch/wear/fragments/StopwatchCustomVectorView.java
// Deal with touch events, either start/stop or swipe
Deal with touch events, either start/stop or swipe
Deal with touch events either start / stop or swipe
@Override
    public boolean onTouchEvent(MotionEvent event) {
        if (event.getAction() == MotionEvent.ACTION_DOWN) {
            mTouching = System.currentTimeMillis();
        } else if (event.getAction() == MotionEvent.ACTION_UP) {
            if (System.currentTimeMillis() - mTouching > 750) notifyReset();
            if (mTouching > 0) startStop();
            mTouching = 0L;
        }
        return true;
    }
@ Override public boolean onTouchEvent ( MotionEvent event ) { if ( event . getAction ( ) == MotionEvent . ACTION_DOWN ) { mTouching = System . currentTimeMillis ( ) ; } else if ( event . getAction ( ) == MotionEvent . ACTION_UP ) { if ( System . currentTimeMillis ( ) - mTouching > 750 ) notifyReset ( ) ; if ( mTouching > 0 ) startStop ( ) ; mTouching = 0L ; } return true ; }
Deal with touch events, either start/stop or swipe
Deal with touch events either start / stop or swipe