[Android] Exlude TV from auto pause on screen turned OFF
Geoffrey Métais
git at videolan.org
Mon May 20 11:19:56 CEST 2019
vlc-android | branch: 3.1.x | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon May 20 10:36:22 2019 +0200| [566efdc0f744ae22d7f9441f2edb7a00d839c3d3] | committer: Geoffrey Métais
Exlude TV from auto pause on screen turned OFF
> https://code.videolan.org/videolan/vlc-android/commit/566efdc0f744ae22d7f9441f2edb7a00d839c3d3
---
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 69f65f52b..6a6785aef 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -761,7 +761,7 @@ public class VideoPlayerActivity extends AppCompatActivity implements IPlaybackS
mPlaybackStarted = false;
return;
}
- mWasPaused = !(mService.isPlaying() && isInteractive());
+ mWasPaused = !mService.isPlaying() || (!AndroidDevices.showTvUi(this) && !isInteractive());
if (mWasPaused) mSettings.edit().putBoolean(PreferencesActivity.VIDEO_PAUSED, true).apply();
if (!isFinishing()) {
mCurrentAudioTrack = mService.getAudioTrack();
More information about the Android
mailing list