Disallow disabling app results on app search algorithm

This commit is contained in:
SuperDragonXD
2024-08-19 05:42:36 +08:00
committed by GitHub
parent 97a62efbe7
commit 4c71a0ff84
@@ -83,7 +83,7 @@ fun SearchPreferences() {
SearchSuggestionPreference(
checked = if (canDisable) adapter.state.value else true,
onCheckedChange = if (canDisable) adapter::onChange else ({}),
enabled = true,
enabled = if (canDisable) true else false,
onRequestPermission = {},
maxCountAdapter = prefs2.maxAppSearchResultCount.getAdapter(),
maxCountRange = 3..15,