@Override protected void onProgressUpdate(Integer... values){
  if (parent != null) {
    if (values[0] == ON_CACHE_END) {
      parent.onCacheEnd();
    }
 else     if (values[0] == ON_CACHE_INTERRUPTED) {
      Log.i(TAG,"Flag ON_CACHE_INTERRUPTED has been set...");
      shouldBeStopped=true;
      parent.onCacheInterrupted();
    }
 else {
      parent.onCacheProgress(taskCount,values[0]);
    }
  }
}

@ Override protected void onProgressUpdate ( Integer ... values ) { if ( parent != null ) { if ( values [ 0 ] == ON_CACHE_END ) { parent . onCacheEnd ( ) ; } else if ( values [ 0 ] == ON_CACHE_INTERRUPTED ) { Log . i ( TAG , "Flag ON_CACHE_INTERRUPTED has been set..." ) ; shouldBeStopped = true ; parent . onCacheInterrupted ( ) ; } else { parent . onCacheProgress ( taskCount , values [ 0 ] ) ; } } }
calls the parent method to update the progress - bar in the ui while articles are refreshed .
