Commit 686bbb37 authored by Geoffrey Métais's avatar Geoffrey Métais

Video player: PiP in primary mode only

parent 61620300
......@@ -469,7 +469,7 @@ public class VideoPlayerActivity extends AppCompatActivity implements IPlaybackS
(AndroidUtil.isNougatOrLater && !AndroidUtil.isOOrLater //Video on background on Nougat Android TVs
&& AndroidDevices.isAndroidTv && !requestVisibleBehind(true)))
stopPlayback();
else if (!mShowingDialog && "2".equals(mSettings.getString(PreferencesActivity.KEY_VIDEO_APP_SWITCH, "0"))
else if (mDisplayManager.isPrimary() && !mShowingDialog && "2".equals(mSettings.getString(PreferencesActivity.KEY_VIDEO_APP_SWITCH, "0"))
&& isInteractive() && (mService != null && !mService.hasRenderer())) {
switchToPopup();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment