[Android] Hide 'switch to audio' option from TV
Geoffrey Métais
git at videolan.org
Wed Mar 2 18:02:47 CET 2016
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Mar 2 18:02:15 2016 +0100| [7960c46a997f64c74be3c71e1ffe88094ceb862f] | committer: Geoffrey Métais
Hide 'switch to audio' option from TV
> https://code.videolan.org/videolan/vlc-android/commit/7960c46a997f64c74be3c71e1ffe88094ceb862f
---
vlc-android/src/org/videolan/vlc/gui/dialogs/AdvOptionsDialog.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/dialogs/AdvOptionsDialog.java b/vlc-android/src/org/videolan/vlc/gui/dialogs/AdvOptionsDialog.java
index 6b73db1..a1f6c77 100644
--- a/vlc-android/src/org/videolan/vlc/gui/dialogs/AdvOptionsDialog.java
+++ b/vlc-android/src/org/videolan/vlc/gui/dialogs/AdvOptionsDialog.java
@@ -465,7 +465,8 @@ public class AdvOptionsDialog extends DialogFragment implements View.OnClickList
mAdapter.addOption(new Option(ID_JUMP_TO, R.attr.ic_jumpto_normal_style));
if (mMode == MODE_VIDEO) {
- mAdapter.addOption(new Option(ID_PLAY_AS_AUDIO, R.attr.ic_playasaudio_on));
+ if (!VLCApplication.showTvUi())
+ mAdapter.addOption(new Option(ID_PLAY_AS_AUDIO, R.attr.ic_playasaudio_on));
mAdapter.addOption(new Option(ID_SPU_DELAY, R.attr.ic_subtitledelay));
mAdapter.addOption(new Option(ID_AUDIO_DELAY, R.attr.ic_audiodelay));
More information about the Android
mailing list