projects/syncslides/app/src/main/java/io/v/android/apps/syncslides/NavigateFragment.java
/**
     * When the user presses the icon, add the user's identity to the presenter's question queue.
     * If presenter presses the button, get a list of users who are asking questions.
     */
When the user presses the icon, add the user's identity to the presenter's question queue.
If presenter presses the button, get a list of users who are asking questions.
When the user presses the icon add the user ' s identity to the presenter ' s question queue . If presenter presses the button get a list of users who are asking questions .
private void questionButton() {
        DB db = DB.Singleton.get(getActivity().getApplicationContext());
        switch (mRole) {
            case AUDIENCE:
                db.askQuestion(mDeckId, mPresentationId,
                        SignInActivity.getUserName(getActivity()));
                toast("You have been added to the Q&A queue.");
                break;
            case PRESENTER:
                if (mQuestionList == null || mQuestionList.size() == 0) {
                    break;
                }
                DialogFragment dialog = QuestionDialogFragment.newInstance(mQuestionList);
                dialog.setTargetFragment(this, DIALOG_REQUEST_CODE);
                dialog.show(getFragmentManager(), "QuestionerDialogFragment");
                break;
            case BROWSER:
                break;
        }
    }
private void questionButton ( ) { DB db = DB . Singleton . get ( getActivity ( ) . getApplicationContext ( ) ) ; switch ( mRole ) { case AUDIENCE : db . askQuestion ( mDeckId , mPresentationId , SignInActivity . getUserName ( getActivity ( ) ) ) ; toast ( "You have been added to the Q&A queue." ) ; break ; case PRESENTER : if ( mQuestionList == null || mQuestionList . size ( ) == 0 ) { break ; } DialogFragment dialog = QuestionDialogFragment . newInstance ( mQuestionList ) ; dialog . setTargetFragment ( this , DIALOG_REQUEST_CODE ) ; dialog . show ( getFragmentManager ( ) , "QuestionerDialogFragment" ) ; break ; case BROWSER : break ; } }
When the user presses the icon, add the user's identity to the presenter's question queue.
When the user presses the icon add the user ' s identity to the presenter ' s question queue .
// Do nothing.