[Android] Hide all overlays when resuming VideoPlayerActivity

Nicolas Pomepuy git at videolan.org
Tue Jul 7 13:16:03 CEST 2020


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Mon Jul  6 09:49:28 2020 +0200| [866dabe30457aab063455cee218357d9f9d1d85c] | committer: Nicolas Pomepuy

Hide all overlays when resuming VideoPlayerActivity

Fixes #1400

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

 .../vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.kt | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/application/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.kt b/application/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.kt
index 0d3f0fa53..f0cd830fb 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.kt
@@ -515,6 +515,10 @@ open class VideoPlayerActivity : AppCompatActivity(), PlaybackService.Callback,
 
         if (isLocked && !orientationMode.locked) requestedOrientation = orientationMode.orientation
         overlayDelegate.updateOrientationIcon()
+        arrayOf(FADE_OUT_VOLUME_INFO, FADE_OUT_BRIGHTNESS_INFO, FADE_OUT, FADE_OUT_INFO).forEach {
+            handler.removeMessages(it)
+            handler.sendEmptyMessage(it)
+        }
     }
 
     override fun onNewIntent(intent: Intent) {



More information about the Android mailing list