[Android] Fix overlay not hidden

Geoffrey Métais git at videolan.org
Wed Jun 28 13:14:23 CEST 2017


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Jun 28 13:13:31 2017 +0200| [b72af821828ee16c6c7771eebff04629ec4eaf64] | committer: Geoffrey Métais

Fix overlay not hidden

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

 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 0eedfcd8b..ffc97940a 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -2770,7 +2770,7 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
         initOverlay();
         if (timeout != 0)
             mOverlayTimeout = timeout;
-        if (mOverlayTimeout == 0)
+        else
             mOverlayTimeout = mService.isPlaying() ? OVERLAY_TIMEOUT : OVERLAY_INFINITE;
         if (mIsNavMenu){
             mShowing = true;



More information about the Android mailing list