Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Ewout ter Hoeven
VLC-Android
Commits
0b1270a6
Commit
0b1270a6
authored
May 27, 2016
by
Geoffrey Métais
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable subs picking for network and screen cast
parent
2bc3afe1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
...d/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+2
-0
No files found.
vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
View file @
0b1270a6
...
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment