[Android] Enable subtitles picker for network
Geoffrey Métais
git at videolan.org
Tue May 31 18:27:07 CEST 2016
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue May 31 18:14:40 2016 +0200| [58f2e646530da3bc946b033b3ae3fb7071def09b] | committer: Geoffrey Métais
Enable subtitles picker for network
> https://code.videolan.org/videolan/vlc-android/commit/58f2e646530da3bc946b033b3ae3fb7071def09b
---
vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java | 2 +-
1 file changed, 1 insertion(+), 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 b346449..39036e4 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -2162,7 +2162,7 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
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.getMenu().findItem(R.id.video_menu_subtitles_picker).setEnabled(!TextUtils.equals(mUri.getScheme(), "http") && mPresentation == null);
popupMenu.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener() {
@Override
public boolean onMenuItemClick(MenuItem item) {
More information about the Android
mailing list