private void nextSync(){
  if (syncItemIterator.hasNext()) {
    partialStartTime=System.currentTimeMillis();
    currentSyncItem=syncItemIterator.next();
    currentSyncItem.sync(this,hostConnection,callbackHandler,contentResolver);
  }
 else {
    LogUtils.LOGD(TAG,"Sync finished for all items. Total time: " + (System.currentTimeMillis() - startTime));
    if (listener != null) {
      listener.onSyncFinished(this);
    }
    syncService.stopSelf(serviceStartId);
  }
}

private void nextSync ( ) { if ( syncItemIterator . hasNext ( ) ) { partialStartTime = System . currentTimeMillis ( ) ; currentSyncItem = syncItemIterator . next ( ) ; currentSyncItem . sync ( this , hostConnection , callbackHandler , contentResolver ) ; } else { LogUtils . LOGD ( TAG , "Sync finished for all items. Total time: " + ( System . currentTimeMillis ( ) - startTime ) ) ; if ( listener != null ) { listener . onSyncFinished ( this ) ; } syncService . stopSelf ( serviceStartId ) ; } }
processes the next item on the sync list , or cleans up if it is finished .
