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