[Android] Fix seekbar lock when switching to an other app

Alexandre Perraud git at videolan.org
Mon May 9 16:36:53 CEST 2016


vlc-android | branch: master | Alexandre Perraud <4leyx4ndre at gmail.com> | Mon May  9 16:34:10 2016 +0200| [42fadbb8e108e3ea4df3b8adb9dbd9fa7540bf8f] | committer: Alexandre Perraud

Fix seekbar lock when switching to an other app

Fix #16874

> https://code.videolan.org/videolan/vlc-android/commit/42fadbb8e108e3ea4df3b8adb9dbd9fa7540bf8f
---

 vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java | 3 ++-
 1 file changed, 2 insertions(+), 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 7dfcc72..58d7c8b 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -2388,7 +2388,8 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
                     ? R.drawable.ic_forward_circle
                     : R.drawable.ic_forward_circle_disable_o);
         }
-        mSeekbar.setEnabled(seekable);
+        if (!mIsLocked)
+            mSeekbar.setEnabled(seekable);
     }
 
     private void updatePausable(boolean pausable) {



More information about the Android mailing list