[Android] Update anchor ref when null
Geoffrey Métais
git at videolan.org
Wed Jun 28 11:37:58 CEST 2017
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Jun 28 10:27:04 2017 +0200| [40e9d5d35ffa9a50593a2369e9d3ca3832275280] | committer: Geoffrey Métais
Update anchor ref when null
> https://code.videolan.org/videolan/vlc-android/commit/40e9d5d35ffa9a50593a2369e9d3ca3832275280
---
vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java | 4 +++-
1 file changed, 3 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 83133085c..0eedfcd8b 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -2351,8 +2351,10 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
};
public void onAudioSubClick(View anchor){
- if (anchor == null)
+ if (anchor == null) {
initOverlay();
+ anchor = mTracks;
+ }
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