private void showNotification(int audioPath) {

    if (currentTrackInfo == null) return;

    int playState = PLAY_STATE_PAUSED;
    if (player != null && !player.isPlaying()) {
      playState = PLAY_STATE_PLAYING;
    }

    String artist = currentTrackInfo.getArtistName();
    String album = currentTrackInfo.getAlbumName();
    String title = currentTrackInfo.getTitle();
    Bitmap artwork = currentTrackInfo.getArtwork();

    showNotification(playState, audioPath, title, artist, album, artwork);
  }
  private void pauseTrack() {
    if (player.isPlaying()) {
      abandonAudioFocus();

      player.pause();
      eventBus.postSticky(
          new PlayStateChangedEvent(PlayStateChangedEvent.STATE_PAUSED, currentIndex));

      showNotification(
          PLAY_STATE_PLAYING,
          getCurrentAudioPath(),
          currentTrackInfo.getTitle(),
          currentTrackInfo.getArtistName(),
          currentTrackInfo.getAlbumName(),
          currentTrackInfo.getArtwork());
    }
  }