[Android] Hide the feature flag for releases

Nicolas Pomepuy git at videolan.org
Mon Jun 14 09:46:36 UTC 2021


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Mon Jun 14 11:21:49 2021 +0200| [3b2dbf080a6a2f60f425468f53a4a622e3cc41c4] | committer: Nicolas Pomepuy

Hide the feature flag for releases

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

 .../java/org/videolan/television/ui/preferences/PreferencesAdvanced.kt  | 2 +-
 .../src/org/videolan/vlc/gui/preferences/PreferencesAdvanced.kt         | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/application/television/src/main/java/org/videolan/television/ui/preferences/PreferencesAdvanced.kt b/application/television/src/main/java/org/videolan/television/ui/preferences/PreferencesAdvanced.kt
index a6c0ba401..ea06e78f6 100644
--- a/application/television/src/main/java/org/videolan/television/ui/preferences/PreferencesAdvanced.kt
+++ b/application/television/src/main/java/org/videolan/television/ui/preferences/PreferencesAdvanced.kt
@@ -72,7 +72,7 @@ class PreferencesAdvanced : BasePreferenceFragment(), SharedPreferences.OnShared
     override fun onCreate(savedInstanceState: Bundle?) {
         super.onCreate(savedInstanceState)
         if (BuildConfig.DEBUG) findPreference<Preference>("debug_logs")?.isVisible = false
-        if (FeatureFlag.values().isNotEmpty()) findPreference<Preference>("optional_features")?.isVisible = true
+        if (BuildConfig.DEBUG && FeatureFlag.values().isNotEmpty()) findPreference<Preference>("optional_features")?.isVisible = true
     }
 
     override fun onStart() {
diff --git a/application/vlc-android/src/org/videolan/vlc/gui/preferences/PreferencesAdvanced.kt b/application/vlc-android/src/org/videolan/vlc/gui/preferences/PreferencesAdvanced.kt
index 5337d4d03..d042b7e5e 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/preferences/PreferencesAdvanced.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/preferences/PreferencesAdvanced.kt
@@ -73,7 +73,7 @@ class PreferencesAdvanced : BasePreferenceFragment(), SharedPreferences.OnShared
     override fun onCreate(savedInstanceState: Bundle?) {
         super.onCreate(savedInstanceState)
         if (BuildConfig.DEBUG) findPreference<Preference>("debug_logs")?.isVisible = false
-        if (FeatureFlag.values().isNotEmpty()) findPreference<Preference>("optional_features")?.isVisible = true
+        if (BuildConfig.DEBUG && FeatureFlag.values().isNotEmpty()) findPreference<Preference>("optional_features")?.isVisible = true
     }
 
     override fun onStart() {



More information about the Android mailing list