[Android] Open feature flags to non debug builds

Nicolas Pomepuy git at videolan.org
Tue Nov 2 12:43:41 UTC 2021


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Mon Oct 18 08:09:47 2021 +0200| [df0be2274f55b4b177b0b3c4f770bf9c1d46582b] | committer: Nicolas Pomepuy

Open feature flags to non debug builds

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

 .../java/org/videolan/television/ui/preferences/PreferencesAdvanced.kt | 2 +-
 .../src/org/videolan/vlc/gui/preferences/PreferencesAdvanced.kt        | 3 ++-
 2 files changed, 3 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 bf7295608..8d2700533 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
@@ -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 (BuildConfig.DEBUG && FeatureFlag.values().isNotEmpty()) findPreference<Preference>("optional_features")?.isVisible = true
+        if (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 d042b7e5e..6e5a87539 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,8 @@ class PreferencesAdvanced : BasePreferenceFragment(), SharedPreferences.OnShared
     override fun onCreate(savedInstanceState: Bundle?) {
         super.onCreate(savedInstanceState)
         if (BuildConfig.DEBUG) findPreference<Preference>("debug_logs")?.isVisible = false
-        if (BuildConfig.DEBUG && FeatureFlag.values().isNotEmpty()) findPreference<Preference>("optional_features")?.isVisible = true
+        if (FeatureFlag.values().isNotEmpty()) findPreference<Preference>("optional_features")?.isVisible = true
+
     }
 
     override fun onStart() {



More information about the Android mailing list