code: @SuppressWarnings("deprecation")
      public void onDestroy() {
          if (Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP) {
              mRemoteControlClientCompat.setPlaybackState(RemoteControlClient.PLAYSTATE_STOPPED);
              mAudioManager.unregisterMediaButtonEventReceiver(mMediaButtonReceiverComponent);
              mLocalBroadcastManager.unregisterReceiver(mLockScreenReceiver);
          }
          mMediaSession.release();
      }
docs: Should be called to released the internal component.