[Android] Video player: restore "play as audio" option

Geoffrey Métais git at videolan.org
Thu Dec 6 18:54:37 CET 2018


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Dec  6 18:15:34 2018 +0100| [3a4cfe1a01bdf611e9abfa8b1afb3bbb2e36c1ce] | committer: Geoffrey Métais

Video player: restore "play as audio" option

> https://code.videolan.org/videolan/vlc-android/commit/3a4cfe1a01bdf611e9abfa8b1afb3bbb2e36c1ce
---

 vlc-android/src/org/videolan/vlc/gui/helpers/PlayerOptionsDelegate.kt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/helpers/PlayerOptionsDelegate.kt b/vlc-android/src/org/videolan/vlc/gui/helpers/PlayerOptionsDelegate.kt
index 5e753f516..2271ea055 100644
--- a/vlc-android/src/org/videolan/vlc/gui/helpers/PlayerOptionsDelegate.kt
+++ b/vlc-android/src/org/videolan/vlc/gui/helpers/PlayerOptionsDelegate.kt
@@ -91,7 +91,7 @@ class PlayerOptionsDelegate(val activity: AppCompatActivity, val service: Playba
         options.add(PlayerOption(ID_JUMP_TO, R.attr.ic_jumpto_normal_style, res.getString(R.string.jump_to_time)))
         options.add(PlayerOption(ID_EQUALIZER, R.attr.ic_equalizer_normal_style, res.getString(R.string.equalizer)))
         if (video) {
-            if (primary && tvUi && service.audioTracksCount > 0)
+            if (primary && !tvUi && service.audioTracksCount > 0)
                 options.add(PlayerOption(ID_PLAY_AS_AUDIO, R.attr.ic_playasaudio_on, res.getString(R.string.play_as_audio)))
             options.add(PlayerOption(ID_SPU_DELAY, R.attr.ic_subtitledelay, res.getString(R.string.spu_delay)))
             options.add(PlayerOption(ID_AUDIO_DELAY, R.attr.ic_audiodelay, res.getString(R.string.audio_delay)))



More information about the Android mailing list