[Android] Fix DVD menu visibility

Nicolas Pomepuy git at videolan.org
Tue Nov 24 09:43:49 CET 2020


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Tue Nov 24 08:39:25 2020 +0100| [2ba7593b889691616d6e505f5a96d8b3874c712e] | committer: Nicolas Pomepuy

Fix DVD menu visibility

Fixes #1553

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

 .../vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.kt  | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

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 197448228..cd2c1b82a 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
@@ -130,7 +130,6 @@ open class VideoPlayerActivity : AppCompatActivity(), PlaybackService.Callback,
         private set
     private var isPlaying = false
     private var loadingImageView: ImageView? = null
-    private var navMenu: ImageView? = null
     var enableCloneMode: Boolean = false
     lateinit var orientationMode: PlayerOrientationMode
 
@@ -2014,7 +2013,7 @@ open class VideoPlayerActivity : AppCompatActivity(), PlaybackService.Callback,
                 overlayDelegate.hideOverlay(false)
             } else if (menuIdx != -1) setESTracks()
 
-            navMenu.setVisibility(if (menuIdx >= 0 && navMenu != null) View.VISIBLE else View.GONE)
+            if (overlayDelegate.isHudRightBindingInitialized()) overlayDelegate.hudRightBinding.playerOverlayNavmenu.setVisibility(if (menuIdx >= 0) View.VISIBLE else View.GONE)
             supportInvalidateOptionsMenu()
         }
     }



More information about the Android mailing list