[Android] Exlude TV from auto pause on screen turned OFF

Geoffrey Métais git at videolan.org
Mon May 20 11:19:47 CEST 2019


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon May 20 10:31:13 2019 +0200| [3bd92aad8472f86621a67fa17ab54e1717ede3ba] | committer: Geoffrey Métais

Exlude TV from auto pause on screen turned OFF

> https://code.videolan.org/videolan/vlc-android/commit/3bd92aad8472f86621a67fa17ab54e1717ede3ba
---

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

diff --git a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.kt b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.kt
index 2cef2781d..aff915f11 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.kt
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.kt
@@ -840,7 +840,7 @@ open class VideoPlayerActivity : AppCompatActivity(), IPlaybackSettingsControlle
             return
         }
         service?.run {
-            wasPaused = !(isPlaying && isInteractive)
+            wasPaused = !isPlaying || (!Settings.showTvUi && !isInteractive)
             if (wasPaused) settings.edit().putBoolean(VIDEO_PAUSED, true).apply()
             if (!isFinishing) {
                 currentAudioTrack = audioTrack



More information about the Android mailing list