public boolean addItemUnique(Album a){
synchronized (mAlbums) {
    if (!mAlbums.contains(a)) {
      mAlbums.add(a);
      sortListLocked();
      return true;
    }
 else {
      return false;
    }
  }
}

public boolean addItemUnique ( Album a ) { synchronized ( mAlbums ) { if ( ! mAlbums . contains ( a ) ) { mAlbums . add ( a ) ; sortListLocked ( ) ; return true ; } else { return false ; } } }
adds an album to the adapter if it isn ' t already existing
