2
0
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:
Emily Kager 2019-03-19 15:11:29 -07:00 committed by Jeff Boek
parent 6cf9af0dd1
commit 202b195215

View File

@ -69,10 +69,16 @@ class SettingsFragment : PreferenceFragmentCompat(), CoroutineScope, AccountObse
super.onResume() super.onResume()
(activity as AppCompatActivity).supportActionBar?.show() (activity as AppCompatActivity).supportActionBar?.show()
val preference = val defaultBrowserPreference =
findPreference<DefaultBrowserPreference>(getString(R.string.pref_key_make_default_browser)) 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() generateWordmark()
setupPreferences() setupPreferences()
setupAccountUI() setupAccountUI()