[Android] Video player: PiP in primary mode only

Geoffrey Métais git at videolan.org
Tue Jan 29 13:07:53 CET 2019


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Jan 29 09:58:56 2019 +0100| [686bbb370e523303180200a9854a5048259e046d] | committer: Geoffrey Métais

Video player: PiP in primary mode only

> https://code.videolan.org/videolan/vlc-android/commit/686bbb370e523303180200a9854a5048259e046d
---

 vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
index 4e07e6484..6fb8ce67f 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -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();
             }



More information about the Android mailing list