From cfcd4803400bc129c2a899205a7cf18288b3f208 Mon Sep 17 00:00:00 2001 From: SuperDragonXD <70206496+SuperDragonXD@users.noreply.github.com> Date: Wed, 3 Apr 2024 19:46:53 +0800 Subject: [PATCH] Miscellaneous changes to search preferences * Make app/shortcut search toggleable * Make Startpage suggestions delay count less granular * Remove duplicate settings --- .../preferences/destinations/SearchPreferences.kt | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/lawnchair/src/app/lawnchair/ui/preferences/destinations/SearchPreferences.kt b/lawnchair/src/app/lawnchair/ui/preferences/destinations/SearchPreferences.kt index 75e270de3d..6e124a56ca 100644 --- a/lawnchair/src/app/lawnchair/ui/preferences/destinations/SearchPreferences.kt +++ b/lawnchair/src/app/lawnchair/ui/preferences/destinations/SearchPreferences.kt @@ -57,7 +57,6 @@ fun SearchPreferences() { maxCountRange = 3..15, label = stringResource(R.string.search_pref_result_apps_and_shortcuts_title), maxCountLabel = stringResource(R.string.max_apps_result_count_title), - preventSwitchChange = true, ) { SwitchPreference( adapter = prefs2.enableFuzzySearch.getAdapter(), @@ -76,20 +75,12 @@ fun SearchPreferences() { SliderPreference( label = stringResource(id = R.string.max_web_suggestion_delay), adapter = prefs2.maxWebSuggestionDelay.getAdapter(), - step = 100, - valueRange = 200..5000, + step = 500, + valueRange = 500..5000, showUnit = "ms", ) } - SearchSuggestionPreference( - adapter = prefs.searchResultSettingsEntry.getAdapter(), - maxCountAdapter = prefs2.maxSettingsEntryResultCount.getAdapter(), - maxCountRange = 2..10, - label = stringResource(id = R.string.search_pref_result_settings_title), - maxCountLabel = stringResource(id = R.string.max_settings_entry_result_count_title), - ) - if (isDeviceSearch) { SearchSuggestionPreference( adapter = prefs.searchResultPeople.getAdapter(),