[Android] Fix lock timing to correctly show the ui

Alexandre Perraud git at videolan.org
Wed Feb 24 19:24:15 CET 2016


vlc-android | branch: master | Alexandre Perraud <4leyx4ndre at gmail.com> | Wed Feb 24 19:15:50 2016 +0100| [841e5b1980be4ecd27b4cfc40641d9db3282a513] | committer: Alexandre Perraud

Fix lock timing to correctly show the ui

> https://code.videolan.org/videolan/vlc-android/commit/841e5b1980be4ecd27b4cfc40641d9db3282a513
---

 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 a2cd31e..f57eff3 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -1310,6 +1310,7 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
         mSize.setEnabled(false);
         hideOverlay(true);
         mLockBackButton = true;
+        mIsLocked = true;
     }
 
     /**
@@ -1325,6 +1326,7 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
         mLength.setEnabled(true);
         mSize.setEnabled(true);
         mShowing = false;
+        mIsLocked = false;
         showOverlay();
         mLockBackButton = false;
     }
@@ -2148,7 +2150,6 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
                     unlockScreen();
                 else
                     lockScreen();
-                mIsLocked = !mIsLocked;
                 break;
             case R.id.player_overlay_size:
                 resizeVideo();



More information about the Android mailing list