[Android] Disable subs picking for network and screen cast

Geoffrey Métais git at videolan.org
Fri May 27 18:25:11 CEST 2016


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri May 27 18:24:34 2016 +0200| [0b1270a6ea600b692b0d6ebe4765ab017b5073bb] | committer: Geoffrey Métais

Disable subs picking for network and screen cast

> https://code.videolan.org/videolan/vlc-android/commit/0b1270a6ea600b692b0d6ebe4765ab017b5073bb
---

 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 a782a68..d4746df 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -2153,6 +2153,8 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
         popupMenu.getMenuInflater().inflate(R.menu.audiosub_tracks, popupMenu.getMenu());
         popupMenu.getMenu().findItem(R.id.video_menu_audio_track).setEnabled(mService.getAudioTracksCount() > 0);
         popupMenu.getMenu().findItem(R.id.video_menu_subtitles).setEnabled(mService.getSpuTracksCount() > 0);
+        //FIXME network subs cannot be enabled & screen cast display is broken with picker
+        popupMenu.getMenu().findItem(R.id.video_menu_subtitles_picker).setEnabled(TextUtils.equals(mUri.getScheme(), "file") && mPresentation == null);
         popupMenu.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener() {
             @Override
             public boolean onMenuItemClick(MenuItem item) {



More information about the Android mailing list