mirror of
https://github.com/fork-maintainers/iceraven-browser
synced 2024-11-11 13:11:01 +00:00
Closes #1089 - Default Search Engine should be shown in Pref summary
This commit is contained in:
parent
6cf9af0dd1
commit
202b195215
@ -69,10 +69,16 @@ class SettingsFragment : PreferenceFragmentCompat(), CoroutineScope, AccountObse
|
||||
super.onResume()
|
||||
|
||||
(activity as AppCompatActivity).supportActionBar?.show()
|
||||
val preference =
|
||||
val defaultBrowserPreference =
|
||||
findPreference<DefaultBrowserPreference>(getString(R.string.pref_key_make_default_browser))
|
||||
defaultBrowserPreference?.updateSwitch()
|
||||
|
||||
val searchEnginePreference =
|
||||
findPreference<Preference>(getString(R.string.pref_key_search_engine_settings))
|
||||
searchEnginePreference?.summary = context?.let {
|
||||
requireComponents.search.searchEngineManager.getDefaultSearchEngine(it).name
|
||||
}
|
||||
|
||||
preference?.updateSwitch()
|
||||
generateWordmark()
|
||||
setupPreferences()
|
||||
setupAccountUI()
|
||||
|
Loading…
Reference in New Issue
Block a user