[Android] VideoPlayer: requestVisibleBehind only for tv
Thomas Guillem
git at videolan.org
Wed Sep 2 19:40:10 CEST 2015
vlc-ports/android | branch: master | Thomas Guillem <thomas at gllm.fr> | Wed Sep 2 19:17:08 2015 +0200| [948bdf5cbf7a995f6fde7834b26c39453190ef16] | committer: Thomas Guillem
VideoPlayer: requestVisibleBehind only for tv
Video was not stopped when screen was turned off because of this.
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=948bdf5cbf7a995f6fde7834b26c39453190ef16
---
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 dcc94a4..3428bf5 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -544,7 +544,7 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
/* Stop the earliest possible to avoid vout error */
if (isFinishing())
stopPlayback();
- else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP)
+ else if (BuildConfig.tv && Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP)
requestVisibleBehind(true);
}
More information about the Android
mailing list