[Android] Don't bother dim UI if video player is closing

Geoffrey Métais git at videolan.org
Thu Sep 28 16:48:00 CEST 2017


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Sep 28 16:47:12 2017 +0200| [89d717f1267ebd4c962bf181537bdd17fdd8efc9] | committer: Geoffrey Métais

Don't bother dim UI if video player is closing

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

 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 8f510b5b7..0c7baa415 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -572,7 +572,8 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
     @Override
     protected void onPause() {
         super.onPause();
-        hideOverlay(true);
+        if (!isFinishing())
+            hideOverlay(true);
         setHudClickListeners(false);
 
         /* Stop the earliest possible to avoid vout error */



More information about the Android mailing list