private void notifyChange(final String what){
  if (D)   LOG.info("notifyChange: what = " + what);
  updateRemoteControlClient(what);
  if (what.equals(POSITION_CHANGED)) {
    return;
  }
  final Intent intent=new Intent(what);
  intent.putExtra("id",getAudioId());
  intent.putExtra("artist",getArtistName());
  intent.putExtra("album",getAlbumName());
  intent.putExtra("track",getTrackName());
  intent.putExtra("playing",isPlaying());
  intent.putExtra("isfavorite",isFavorite());
  sendStickyBroadcast(intent);
  final Intent musicIntent=new Intent(intent);
  musicIntent.setAction(what.replace(APOLLO_PACKAGE_NAME,MUSIC_PACKAGE_NAME));
  sendStickyBroadcast(musicIntent);
  if (what.equals(META_CHANGED)) {
    if (mFavoritesCache == null) {
      mFavoritesCache=FavoritesStore.getInstance(this);
    }
    if (mFavoritesCache.getSongId(getAudioId()) != null) {
      mFavoritesCache.addSongId(getAudioId(),getTrackName(),getAlbumName(),getArtistName());
    }
    if (mRecentsCache == null) {
      mRecentsCache=RecentStore.getInstance(this);
    }
    mRecentsCache.addAlbumId(getAlbumId(),getAlbumName(),getArtistName(),MusicUtils.getSongCountForAlbum(this,getAlbumId()),MusicUtils.getReleaseDateForAlbum(this,getAlbumId()));
  }
 else   if (what.equals(QUEUE_CHANGED)) {
    saveQueue(true);
    if (isPlaying()) {
      setNextTrack();
    }
  }
 else {
    saveQueue(false);
  }
  if (what.equals(PLAYSTATE_CHANGED)) {
    mNotificationHelper.updatePlayState(isPlaying());
  }
}

private void notifyChange ( final String what ) { if ( D ) LOG . info ( "notifyChange: what = " + what ) ; updateRemoteControlClient ( what ) ; if ( what . equals ( POSITION_CHANGED ) ) { return ; } final Intent intent = new Intent ( what ) ; intent . putExtra ( "id" , getAudioId ( ) ) ; intent . putExtra ( "artist" , getArtistName ( ) ) ; intent . putExtra ( "album" , getAlbumName ( ) ) ; intent . putExtra ( "track" , getTrackName ( ) ) ; intent . putExtra ( "playing" , isPlaying ( ) ) ; intent . putExtra ( "isfavorite" , isFavorite ( ) ) ; sendStickyBroadcast ( intent ) ; final Intent musicIntent = new Intent ( intent ) ; musicIntent . setAction ( what . replace ( APOLLO_PACKAGE_NAME , MUSIC_PACKAGE_NAME ) ) ; sendStickyBroadcast ( musicIntent ) ; if ( what . equals ( META_CHANGED ) ) { if ( mFavoritesCache == null ) { mFavoritesCache = FavoritesStore . getInstance ( this ) ; } if ( mFavoritesCache . getSongId ( getAudioId ( ) ) != null ) { mFavoritesCache . addSongId ( getAudioId ( ) , getTrackName ( ) , getAlbumName ( ) , getArtistName ( ) ) ; } if ( mRecentsCache == null ) { mRecentsCache = RecentStore . getInstance ( this ) ; } mRecentsCache . addAlbumId ( getAlbumId ( ) , getAlbumName ( ) , getArtistName ( ) , MusicUtils . getSongCountForAlbum ( this , getAlbumId ( ) ) , MusicUtils . getReleaseDateForAlbum ( this , getAlbumId ( ) ) ) ; } else if ( what . equals ( QUEUE_CHANGED ) ) { saveQueue ( true ) ; if ( isPlaying ( ) ) { setNextTrack ( ) ; } } else { saveQueue ( false ) ; } if ( what . equals ( PLAYSTATE_CHANGED ) ) { mNotificationHelper . updatePlayState ( isPlaying ( ) ) ; } }
notify the change - receivers that something has changed .
