@Override public void onArtistUpdate(ProviderIdentifier provider,Artist a) throws RemoteException {
  if (a == null) {
    Log.w(TAG,"Provider returned a null artist");
    return;
  }
  Artist cached=mCache.getArtist(a.getRef());
  if (cached == null) {
    mCache.putArtist(provider,a);
    postArtistForUpdate(a);
  }
 else   if (!cached.isIdentical(a)) {
    cached.setName(a.getName());
    Iterator<String> it=a.albums();
    while (it.hasNext()) {
      cached.addAlbum(it.next());
    }
    cached.setIsLoaded(a.isLoaded());
    postArtistForUpdate(a);
  }
}

@ Override public void onArtistUpdate ( ProviderIdentifier provider , Artist a ) throws RemoteException { if ( a == null ) { Log . w ( TAG , "Provider returned a null artist" ) ; return ; } Artist cached = mCache . getArtist ( a . getRef ( ) ) ; if ( cached == null ) { mCache . putArtist ( provider , a ) ; postArtistForUpdate ( a ) ; } else if ( ! cached . isIdentical ( a ) ) { cached . setName ( a . getName ( ) ) ; Iterator < String > it = a . albums ( ) ; while ( it . hasNext ( ) ) { cached . addAlbum ( it . next ( ) ) ; } cached . setIsLoaded ( a . isLoaded ( ) ) ; postArtistForUpdate ( a ) ; } }
called by the providers when the details of an artist have been updated .
