pull/587/head
FongMi 1 year ago
parent 1a1fe27c12
commit 51592fd46f
  1. 1
      app/src/leanback/java/com/fongmi/android/tv/ui/activity/CastActivity.java
  2. 1
      app/src/leanback/java/com/fongmi/android/tv/ui/activity/LiveActivity.java

@ -550,6 +550,7 @@ public class CastActivity extends BaseActivity implements CustomKeyDownCast.List
mClock.release();
mPlayers.release();
unbindService(this);
PlaybackService.stop();
mService.bindRealPlayer(null);
App.removeCallbacks(mR1, mR2);
}

@ -1017,6 +1017,7 @@ public class LiveActivity extends BaseActivity implements GroupPresenter.OnClick
protected void onDestroy() {
super.onDestroy();
mPlayers.release();
PlaybackService.stop();
mViewModel.url.removeObserver(mObserveUrl);
mViewModel.epg.removeObserver(mObserveEpg);
App.removeCallbacks(mR0, mR1, mR3, mR3, mR4);

Loading…
Cancel
Save