[Android] Fix TV options hidden with leanback UI

Geoffrey Métais git at videolan.org
Thu Jan 21 15:10:29 CET 2016


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Jan 21 11:52:15 2016 +0100| [4f695b09f0f7d1af941e23a6497833866e846fed] | committer: Geoffrey Métais

Fix TV options hidden with leanback UI

> https://code.videolan.org/videolan/vlc-android/commit/4f695b09f0f7d1af941e23a6497833866e846fed
---

 .../src/org/videolan/vlc/gui/tv/preferences/PreferencesUi.java        | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/tv/preferences/PreferencesUi.java b/vlc-android/src/org/videolan/vlc/gui/tv/preferences/PreferencesUi.java
index fbd2dda..803ddc1 100644
--- a/vlc-android/src/org/videolan/vlc/gui/tv/preferences/PreferencesUi.java
+++ b/vlc-android/src/org/videolan/vlc/gui/tv/preferences/PreferencesUi.java
@@ -57,8 +57,8 @@ public class PreferencesUi extends BasePreferenceFragment {
         findPreference("force_list_portrait").setVisible(false);
         findPreference("enable_headset_detection").setVisible(false);
         findPreference("enable_steal_remote_control").setVisible(false);
-        findPreference(KEY_ENABLE_TOUCH_PLAYER).setVisible(false);
-        findPreference("tv_ui").setVisible(false);
+        findPreference(KEY_ENABLE_TOUCH_PLAYER).setVisible(AndroidDevices.hasTsp());
+        findPreference("tv_ui").setVisible(AndroidDevices.hasTsp());
     }
 
     @Override



More information about the Android mailing list