fm/fmapp2/src/com/caf/fmradio/HorizontalNumberPicker.java
private void forceCompleteChangeCurrentByOneViaScroll() {
        Scroller scroller = mFlingScroller;
        if (!scroller.isFinished()) {
            if (mHorizontal) {
                final int xBeforeAbort = scroller.getCurrX();
                scroller.abortAnimation();
                final int xDelta = scroller.getCurrX() - xBeforeAbort;
                scrollBy(xDelta, 0);
            } else {
                final int yBeforeAbort = scroller.getCurrY();
                scroller.abortAnimation();
                final int yDelta = scroller.getCurrY() - yBeforeAbort;
                scrollBy(0, yDelta);
            }
        }
    }
/**
     * Ensures that if we are in the process of changing the current value by
     * one via scrolling the scroller gets to its final state and the value is
     * updated.
     */
Ensures that if we are in the process of changing the current value by
one via scrolling the scroller gets to its final state and the value is
updated.
Ensures that if we are in the process of changing the current value by one via scrolling the scroller gets to its final state and the value is updated .
private void forceCompleteChangeCurrentByOneViaScroll() {
        Scroller scroller = mFlingScroller;
        if (!scroller.isFinished()) {
            if (mHorizontal) {
                final int xBeforeAbort = scroller.getCurrX();
                scroller.abortAnimation();
                final int xDelta = scroller.getCurrX() - xBeforeAbort;
                scrollBy(xDelta, 0);
            } else {
                final int yBeforeAbort = scroller.getCurrY();
                scroller.abortAnimation();
                final int yDelta = scroller.getCurrY() - yBeforeAbort;
                scrollBy(0, yDelta);
            }
        }
    }
private void forceCompleteChangeCurrentByOneViaScroll ( ) { Scroller scroller = mFlingScroller ; if ( ! scroller . isFinished ( ) ) { if ( mHorizontal ) { final int xBeforeAbort = scroller . getCurrX ( ) ; scroller . abortAnimation ( ) ; final int xDelta = scroller . getCurrX ( ) - xBeforeAbort ; scrollBy ( xDelta , 0 ) ; } else { final int yBeforeAbort = scroller . getCurrY ( ) ; scroller . abortAnimation ( ) ; final int yDelta = scroller . getCurrY ( ) - yBeforeAbort ; scrollBy ( 0 , yDelta ) ; } } }
Ensures that if we are in the process of changing the current value by
 one via scrolling the scroller gets to its final state and the value is
 updated.
Ensures that if we are in the process of changing the current value by one via scrolling the scroller gets to its final state and the value is updated .