From 9dedf283bcefae943974ce7912cbf8e72a01a705 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C6=B0ng=20Phan?= Date: Sun, 8 May 2022 23:08:46 +0700 Subject: [PATCH] "Revert "TopLevelSettings: custom settings layout [3/3]" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 837e5f2d0c89534049e0d804847b843731e710f4. Signed-off-by: Hưng Phan Revert "Revert "TopLevelSettings: custom settings layout [3/3]"" This reverts commit 2a3921c969aed64d50c9fd3d0fc6a1c700896f3c. Revert "TopLevelSettings: custom settings layout [3/3]" This reverts commit 42d357e1a299d177d4db7d31fe433ff0b646eb0a. Signed-off-by: Hưng Phan --- res/values/cherish_arrays.xml | 17 ----------------- res/values/cherish_strings.xml | 9 --------- res/xml/cherish_settings_theme.xml | 14 -------------- .../settings/fragments/ThemeSettings.java | 12 +----------- 4 files changed, 1 insertion(+), 51 deletions(-) diff --git a/res/values/cherish_arrays.xml b/res/values/cherish_arrays.xml index 5fabda9..7098595 100644 --- a/res/values/cherish_arrays.xml +++ b/res/values/cherish_arrays.xml @@ -571,23 +571,6 @@ @string/status_bar_date_format_custom - - - @string/settings_dashboard_style_aosp - @string/settings_dashboard_style_oos11_gms - @string/settings_dashboard_style_oos11_microg - @string/settings_dashboard_style_oos12_gms - @string/settings_dashboard_style_oos12_microg - - - - 0 - 1 - 2 - 3 - 4 - - @string/lockscreen_albumart_filter_none diff --git a/res/values/cherish_strings.xml b/res/values/cherish_strings.xml index fe6119e..03d4f66 100644 --- a/res/values/cherish_strings.xml +++ b/res/values/cherish_strings.xml @@ -667,15 +667,6 @@ Date Display date in quick status bar header - - - Settings layout - AOSP - OOS11 Gapps - OOS11 MicroG - OOS12 Gapps - OOS12 MicroG - Settings UI interface Lock screen media diff --git a/res/xml/cherish_settings_theme.xml b/res/xml/cherish_settings_theme.xml index eb147c1..6bfba62 100644 --- a/res/xml/cherish_settings_theme.xml +++ b/res/xml/cherish_settings_theme.xml @@ -18,25 +18,11 @@ android:title="@string/theme_title" xmlns:settings="http://schemas.android.com/apk/res/com.android.settings"> - - - - - - diff --git a/src/com/cherish/settings/fragments/ThemeSettings.java b/src/com/cherish/settings/fragments/ThemeSettings.java index 5e55213..44c8b73 100644 --- a/src/com/cherish/settings/fragments/ThemeSettings.java +++ b/src/com/cherish/settings/fragments/ThemeSettings.java @@ -68,15 +68,12 @@ import net.margaritov.preference.colorpicker.ColorPickerPreference; @SearchIndexable(forTarget = SearchIndexable.ALL & ~SearchIndexable.ARC) public class ThemeSettings extends DashboardFragment implements OnPreferenceChangeListener { - - private static final String SETTINGS_DASHBOARD_GMS = "settings_dashboard_gms"; public static final String TAG = "ThemeSettings"; static final int DEFAULT_QS_PANEL_COLOR = 0xffffffff; static final int DEFAULT = 0xff1a73e8; private Context mContext; - private SystemSettingListPreference mSettingsDashBoardGms; - + private IOverlayManager mOverlayService; private UiModeManager mUiModeManager; @@ -110,9 +107,6 @@ public class ThemeSettings extends DashboardFragment implements OnPreferenceChan ContentResolver resolver = getActivity().getContentResolver(); final Resources res = getResources(); mContext = getActivity(); - - mSettingsDashBoardGms = (SystemSettingListPreference) findPreference(SETTINGS_DASHBOARD_GMS); - mSettingsDashBoardGms.setOnPreferenceChangeListener(this); } public boolean isAvailable() { @@ -122,10 +116,6 @@ public class ThemeSettings extends DashboardFragment implements OnPreferenceChan @Override public boolean onPreferenceChange(Preference preference, Object objValue) { ContentResolver resolver = getActivity().getContentResolver(); - if (preference == mSettingsDashBoardGms) { - CherishUtils.showSettingsRestartDialog(getContext()); - return true; - } return false; }