[Android] Init overlay if needed

Geoffrey Métais git at videolan.org
Thu Jun 15 14:59:43 CEST 2017


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Jun 15 10:03:45 2017 +0200| [97b62b1fdd3e633048c156d151353aa0d89cf277] | committer: Geoffrey Métais

Init overlay if needed

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

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

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 7a24103f9..0c7662a46 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -2363,6 +2363,8 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
     };
 
     public void onAudioSubClick(View anchor){
+        if (anchor == null)
+            initOverlay();
         final AppCompatActivity context = this;
         PopupMenu popupMenu = new PopupMenu(this, anchor);
         popupMenu.getMenuInflater().inflate(R.menu.audiosub_tracks, popupMenu.getMenu());



More information about the Android mailing list