public void updatePendingList(){
  while (mPendingList.size() > 0 && activeListHasRoom()) {
    DownloadInfoRunnable pending=mPendingList.get(0);
    pending.changeStatusState(new ActiveState(pending));
  }
}

public void updatePendingList ( ) { while ( mPendingList . size ( ) > 0 && activeListHasRoom ( ) ) { DownloadInfoRunnable pending = mPendingList . get ( 0 ) ; pending . changeStatusState ( new ActiveState ( pending ) ) ; } }
check if there are pending downloads and if so move the top one up to the active list .
