If only audio track, don't enter pip

okjack
FongMi 2 years ago
parent c29e3eca31
commit 7d6cab6981
  1. 2
      app/src/mobile/java/com/fongmi/android/tv/ui/activity/LiveActivity.java
  2. 2
      app/src/mobile/java/com/fongmi/android/tv/ui/activity/VideoActivity.java

@ -1018,8 +1018,8 @@ public class LiveActivity extends BaseActivity implements CustomKeyDownLive.List
protected void onUserLeaveHint() {
super.onUserLeaveHint();
if (isRedirect()) return;
mPiP.enter(this, Setting.getLiveScale() == 2);
if (isLock()) App.post(this::onLock, 500);
if (mPlayers.haveTrack(C.TRACK_TYPE_VIDEO)) mPiP.enter(this, Setting.getLiveScale() == 2);
}
@Override

@ -1642,8 +1642,8 @@ public class VideoActivity extends BaseActivity implements Clock.Callback, Custo
protected void onUserLeaveHint() {
super.onUserLeaveHint();
if (isRedirect()) return;
mPiP.enter(this, getScale() == 2);
if (isLock()) App.post(this::onLock, 500);
if (mPlayers.haveTrack(C.TRACK_TYPE_VIDEO)) mPiP.enter(this, getScale() == 2);
}
@Override

Loading…
Cancel
Save