From f6d0c1f05e4b91867ddfe76961cb98ffa15006d1 Mon Sep 17 00:00:00 2001 From: wb9688 Date: Thu, 8 Oct 2020 18:36:20 +0200 Subject: [PATCH] Fix compiling release build --- .../settings/DebugSettingsFragment.java | 0 .../{main => debug}/res/xml/main_settings.xml | 0 .../settings/MainSettingsFragment.java | 5 -- app/src/release/res/xml/main_settings.xml | 50 +++++++++++++++++++ 4 files changed, 50 insertions(+), 5 deletions(-) rename app/src/{main => debug}/java/org/schabi/newpipe/settings/DebugSettingsFragment.java (100%) rename app/src/{main => debug}/res/xml/main_settings.xml (100%) create mode 100644 app/src/release/res/xml/main_settings.xml diff --git a/app/src/main/java/org/schabi/newpipe/settings/DebugSettingsFragment.java b/app/src/debug/java/org/schabi/newpipe/settings/DebugSettingsFragment.java similarity index 100% rename from app/src/main/java/org/schabi/newpipe/settings/DebugSettingsFragment.java rename to app/src/debug/java/org/schabi/newpipe/settings/DebugSettingsFragment.java diff --git a/app/src/main/res/xml/main_settings.xml b/app/src/debug/res/xml/main_settings.xml similarity index 100% rename from app/src/main/res/xml/main_settings.xml rename to app/src/debug/res/xml/main_settings.xml diff --git a/app/src/main/java/org/schabi/newpipe/settings/MainSettingsFragment.java b/app/src/main/java/org/schabi/newpipe/settings/MainSettingsFragment.java index 5502a06eb..6d6f0fa75 100644 --- a/app/src/main/java/org/schabi/newpipe/settings/MainSettingsFragment.java +++ b/app/src/main/java/org/schabi/newpipe/settings/MainSettingsFragment.java @@ -21,10 +21,5 @@ public class MainSettingsFragment extends BasePreferenceFragment { defaultPreferences.edit().putBoolean(getString(R.string.update_app_key), false).apply(); } - - if (!DEBUG) { - final Preference debug = findPreference(getString(R.string.debug_pref_screen_key)); - getPreferenceScreen().removePreference(debug); - } } } diff --git a/app/src/release/res/xml/main_settings.xml b/app/src/release/res/xml/main_settings.xml new file mode 100644 index 000000000..e2fb9cb9b --- /dev/null +++ b/app/src/release/res/xml/main_settings.xml @@ -0,0 +1,50 @@ + + + + + + + + + + + + + + + + +