private boolean addHisoricalRecord(HistoricalRecord historicalRecord){
synchronized (mInstanceLock) {
    final boolean added=mHistoricalRecords.add(historicalRecord);
    if (added) {
      mHistoricalRecordsChanged=true;
      pruneExcessiveHistoricalRecordsLocked();
      persistHistoricalData();
      sortActivities();
    }
    return added;
  }
}

private boolean addHisoricalRecord ( HistoricalRecord historicalRecord ) { synchronized ( mInstanceLock ) { final boolean added = mHistoricalRecords . add ( historicalRecord ) ; if ( added ) { mHistoricalRecordsChanged = true ; pruneExcessiveHistoricalRecordsLocked ( ) ; persistHistoricalData ( ) ; sortActivities ( ) ; } return added ; } }
adds a historical record .
