[Android] Remove add to playlist menu on TV

Nicolas Pomepuy git at videolan.org
Tue Apr 30 16:51:57 CEST 2019


vlc-android | branch: 3.1.x | Nicolas Pomepuy <nicolas.pomepuy at gmail.com> | Thu Apr 25 09:50:22 2019 +0200| [9db203fa0ad34dbee709276b0abf63413a79b610] | committer: Geoffrey Métais

Remove add to playlist menu on TV

> https://code.videolan.org/videolan/vlc-android/commit/9db203fa0ad34dbee709276b0abf63413a79b610
---

 vlc-android/src/org/videolan/vlc/gui/helpers/PlayerOptionsDelegate.kt | 4 +++-
 1 file changed, 3 insertions(+), 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 8af5a2a41..ca5055656 100644
--- a/vlc-android/src/org/videolan/vlc/gui/helpers/PlayerOptionsDelegate.kt
+++ b/vlc-android/src/org/videolan/vlc/gui/helpers/PlayerOptionsDelegate.kt
@@ -113,7 +113,9 @@ class PlayerOptionsDelegate(val activity: AppCompatActivity, val service: Playba
                     if (chaptersCount > 1) options.add(PlayerOption(playerOptionType, ID_CHAPTER_TITLE, R.attr.ic_chapter_normal_style, res.getString(R.string.go_to_chapter)))
                 }
                 options.add(PlayerOption(playerOptionType, ID_ABREPEAT, R.attr.ic_abrepeat, res.getString(R.string.ab_repeat)))
-                options.add(PlayerOption(playerOptionType, ID_SAVE_PLAYLIST, R.attr.ic_save, res.getString(R.string.playlist_save)))
+                if (!AndroidDevices.isAndroidTv) {
+                    options.add(PlayerOption(playerOptionType, ID_SAVE_PLAYLIST, R.attr.ic_save, res.getString(R.string.playlist_save)))
+                }
                 if (service.playlistManager.player.canDoPassthrough() && settings.getString("aout", "0") == "0")
                     options.add(PlayerOption(playerOptionType, ID_PASSTHROUGH, R.attr.ic_passthrough, res.getString(R.string.audio_digital_title)))
             }



More information about the Android mailing list