private void loadNextScreen(){
  if (mChallengeNo == mAllDueChallenges.size() - 1) {
    loadFinishScreen();
    return;
  }
  mChallengeNo+=1;
  mCurrentChallenge=mChallengeDataSource.getById(mAllDueChallenges.get(mChallengeNo));
  ObjectAnimator animation=ObjectAnimator.ofInt(mProgress,"progress",mChallengeNo * 100);
  animation.setDuration(300);
  animation.setInterpolator(new DecelerateInterpolator());
  animation.start();
  loadChallenge();
  mFloatingActionButton.setVisibility(View.VISIBLE);
  mFloatingActionButton.setImageResource(R.drawable.ic_check_white_24dp);
}

private void loadNextScreen ( ) { if ( mChallengeNo == mAllDueChallenges . size ( ) - 1 ) { loadFinishScreen ( ) ; return ; } mChallengeNo += 1 ; mCurrentChallenge = mChallengeDataSource . getById ( mAllDueChallenges . get ( mChallengeNo ) ) ; ObjectAnimator animation = ObjectAnimator . ofInt ( mProgress , "progress" , mChallengeNo * 100 ) ; animation . setDuration ( 300 ) ; animation . setInterpolator ( new DecelerateInterpolator ( ) ) ; animation . start ( ) ; loadChallenge ( ) ; mFloatingActionButton . setVisibility ( View . VISIBLE ) ; mFloatingActionButton . setImageResource ( R . drawable . ic_check_white_24dp ) ; }
loads the next screen ( next challenge or the finish screen )
