projects/syncslides/app/src/main/java/io/v/android/apps/syncslides/PresentationActivity.java
/**
     * Shows the navigate fragment where the user can see the given slide and
     * navigate to other components of the slide presentation. If the role is
     * not AUDIENCE, this version includes an add to the back stack so that
     * the user can back out from the navigate fragment to slide list.
     *
     * @param slideNum the number of the slide to show in the fragment
     */
Shows the navigate fragment where the user can see the given slide and
navigate to other components of the slide presentation. If the role is
not AUDIENCE, this version includes an add to the back stack so that
the user can back out from the navigate fragment to slide list.

@param slideNum the number of the slide to show in the fragment
Shows the navigate fragment where the user can see the given slide and navigate to other components of the slide presentation . If the role is not AUDIENCE this version includes an add to the back stack so that the user can back out from the navigate fragment to slide list . @param slideNum the number of the slide to show in the fragment
public void navigateToSlide(int slideNum) {
        setUnsynced();
        NavigateFragment fragment = NavigateFragment.newInstance(
                mDeck.getId(), mPresentationId, slideNum, mRole);
        FragmentTransaction transaction = getSupportFragmentManager()
                .beginTransaction()
                .replace(R.id.fragment, fragment);
        if (mRole != Role.AUDIENCE) {
            transaction.addToBackStack("");
        }
        transaction.commit();
    }
public void navigateToSlide ( int slideNum ) { setUnsynced ( ) ; NavigateFragment fragment = NavigateFragment . newInstance ( mDeck . getId ( ) , mPresentationId , slideNum , mRole ) ; FragmentTransaction transaction = getSupportFragmentManager ( ) . beginTransaction ( ) . replace ( R . id . fragment , fragment ) ; if ( mRole != Role . AUDIENCE ) { transaction . addToBackStack ( "" ) ; } transaction . commit ( ) ; }
Shows the navigate fragment where the user can see the given slide and
 navigate to other components of the slide presentation.
Shows the navigate fragment where the user can see the given slide and navigate to other components of the slide presentation .
// The user picked this specific slide.  Don't try to stay synced.