okjack
okjack 2 years ago
parent 958e620283
commit a5028c35aa
  1. 3
      app/src/mobile/java/com/fongmi/android/tv/ui/activity/LiveActivity.java
  2. 3
      app/src/mobile/java/com/fongmi/android/tv/ui/activity/VideoActivity.java

@ -1158,8 +1158,8 @@ public class LiveActivity extends BaseActivity implements Clock.Callback, Custom
hideUI();
} else {
hideInfo();
stopService();
setForeground(true);
PlaybackService.stop();
setSubtitle(Setting.getSubtitle());
if (isStop()) finish();
}
@ -1231,6 +1231,7 @@ public class LiveActivity extends BaseActivity implements Clock.Callback, Custom
@Override
protected void onDestroy() {
super.onDestroy();
stopService();
mClock.release();
mPlayers.release();
PlaybackService.stop();

@ -1733,8 +1733,8 @@ public class VideoActivity extends BaseActivity implements Clock.Callback, Custo
hideSheet();
} else {
showDanmu();
stopService();
setForeground(true);
PlaybackService.stop();
setSubtitle(Setting.getSubtitle());
if (isStop()) finish();
}
@ -1806,6 +1806,7 @@ public class VideoActivity extends BaseActivity implements Clock.Callback, Custo
protected void onDestroy() {
super.onDestroy();
stopSearch();
stopService();
mClock.release();
mPlayers.release();
Timer.get().reset();

Loading…
Cancel
Save