Skip to content
Snippets Groups Projects
Commit 15e94f9c authored by mike a's avatar mike a Committed by mergify[bot]
Browse files

Bug 1837864 – fix search settings opening visual glitch

(cherry picked from commit 9c46e7206db19b7eeac9f02c4e7b2aad1019c72a)
parent 4d770e2e
No related branches found
No related tags found
No related merge requests found
......@@ -32,6 +32,12 @@ class SearchEngineFragment : PreferenceFragmentCompat() {
if (unifiedSearchUI) R.xml.search_settings_preferences else R.xml.search_preferences,
rootKey,
)
// Visibility should be set before the view has been created, to avoid visual glitches.
requirePreference<SwitchPreference>(R.string.pref_key_show_search_engine_shortcuts).apply {
isVisible = !context.settings().showUnifiedSearchFeature
}
view?.hideKeyboard()
}
......@@ -65,7 +71,6 @@ class SearchEngineFragment : PreferenceFragmentCompat() {
val showSearchShortcuts =
requirePreference<SwitchPreference>(R.string.pref_key_show_search_engine_shortcuts).apply {
isChecked = context.settings().shouldShowSearchShortcuts
isVisible = !context.settings().showUnifiedSearchFeature
}
val showHistorySuggestions =
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment