From e559f9f89f718ee6dbb4d202052693b395f7548b Mon Sep 17 00:00:00 2001 From: tornaco Date: Thu, 28 Apr 2022 21:31:52 +0800 Subject: [PATCH] [app] dev settings --- .../android/thanos/settings/DevSettingsFragment.java | 8 -------- android/app/src/main/res/xml/dev_settings_pref.xml | 7 +------ 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/android/app/src/main/java/github/tornaco/android/thanos/settings/DevSettingsFragment.java b/android/app/src/main/java/github/tornaco/android/thanos/settings/DevSettingsFragment.java index f49bcdcb0..7d6627051 100644 --- a/android/app/src/main/java/github/tornaco/android/thanos/settings/DevSettingsFragment.java +++ b/android/app/src/main/java/github/tornaco/android/thanos/settings/DevSettingsFragment.java @@ -73,14 +73,6 @@ protected void onBindPreferences() { }); } - SwitchPreferenceCompat processManagerV2Pref = findPreference(getString(R.string.key_process_manage_ui_v2)); - processManagerV2Pref.setChecked(AppPreference.isProcessManagerV2Enabled(requireContext())); - processManagerV2Pref.setOnPreferenceChangeListener((preference, newValue) -> { - boolean checked = (boolean) newValue; - AppPreference.setProcessManagerV2Enabled(requireContext(), checked); - return true; - }); - findPreference(getString(R.string.key_rootless_support)).setOnPreferenceClickListener(new Preference.OnPreferenceClickListener() { @Override public boolean onPreferenceClick(@NonNull Preference preference) { diff --git a/android/app/src/main/res/xml/dev_settings_pref.xml b/android/app/src/main/res/xml/dev_settings_pref.xml index 1f2faed7f..cf3b0be95 100644 --- a/android/app/src/main/res/xml/dev_settings_pref.xml +++ b/android/app/src/main/res/xml/dev_settings_pref.xml @@ -18,15 +18,10 @@ app:persistent="false" app:title="@string/title_net_stats" /> - - + app:title="Non-Root support" />