projects/syncslides/app/src/main/java/io/v/android/apps/syncslides/NavigateFragment.java
/**
     * Goes back to the previous slide, if there is one, and updates the UI.
     */
Goes back to the previous slide, if there is one, and updates the UI.
Goes back to the previous slide if there is one and updates the UI .
private void previousSlide() {
        if (mSlides == null) {
            return;
        }
        if (mUserSlideNum > 0) {
            mUserSlideNum--;
            if (mRole == Role.PRESENTER || mDriving) {
                mDB.setCurrentSlide(mDeckId, mPresentationId, mUserSlideNum);
            }
            updateView();
            unsync();
        }
    }
private void previousSlide ( ) { if ( mSlides == null ) { return ; } if ( mUserSlideNum > 0 ) { mUserSlideNum -- ; if ( mRole == Role . PRESENTER || mDriving ) { mDB . setCurrentSlide ( mDeckId , mPresentationId , mUserSlideNum ) ; } updateView ( ) ; unsync ( ) ; } }
Goes back to the previous slide, if there is one, and updates the UI.
Goes back to the previous slide if there is one and updates the UI .
// Wait until the slides have loaded before letting the user move around.