private void update(){
  if (currentInfo != null) {
    if (currentInfo.requestError) {
      if (lastUpdated != -1) {
        loadInfo.setText(String.format("%s (%s ago, updated %s ago)",currentInfo.requestErrorDescription,DateTime.agoSingleCompact(currentInfo.time),DateTime.agoSingleCompact(lastUpdated)));
      }
 else {
        loadInfo.setText(String.format("%s (%s ago)",currentInfo.requestErrorDescription,DateTime.agoSingleCompact(currentInfo.time)));
      }
    }
 else {
      loadInfo.setText(String.format("Last updated %s ago",DateTime.agoSingleVerbose(lastUpdated)));
    }
  }
  if (loading) {
    loadInfo.setText("Loading..");
  }
  updateStats();
}

private void update ( ) { if ( currentInfo != null ) { if ( currentInfo . requestError ) { if ( lastUpdated != - 1 ) { loadInfo . setText ( String . format ( "%s (%s ago, updated %s ago)" , currentInfo . requestErrorDescription , DateTime . agoSingleCompact ( currentInfo . time ) , DateTime . agoSingleCompact ( lastUpdated ) ) ) ; } else { loadInfo . setText ( String . format ( "%s (%s ago)" , currentInfo . requestErrorDescription , DateTime . agoSingleCompact ( currentInfo . time ) ) ) ; } } else { loadInfo . setText ( String . format ( "Last updated %s ago" , DateTime . agoSingleVerbose ( lastUpdated ) ) ) ; } } if ( loading ) { loadInfo . setText ( "Loading.." ) ; } updateStats ( ) ; }
update the last loaded label and the stats .
