diff --git a/app/src/main/java/org/mozilla/fenix/settings/SettingsFragment.kt b/app/src/main/java/org/mozilla/fenix/settings/SettingsFragment.kt index e18a61d943..0c5aa19c50 100644 --- a/app/src/main/java/org/mozilla/fenix/settings/SettingsFragment.kt +++ b/app/src/main/java/org/mozilla/fenix/settings/SettingsFragment.kt @@ -69,10 +69,16 @@ class SettingsFragment : PreferenceFragmentCompat(), CoroutineScope, AccountObse super.onResume() (activity as AppCompatActivity).supportActionBar?.show() - val preference = + val defaultBrowserPreference = findPreference(getString(R.string.pref_key_make_default_browser)) + defaultBrowserPreference?.updateSwitch() + + val searchEnginePreference = + findPreference(getString(R.string.pref_key_search_engine_settings)) + searchEnginePreference?.summary = context?.let { + requireComponents.search.searchEngineManager.getDefaultSearchEngine(it).name + } - preference?.updateSwitch() generateWordmark() setupPreferences() setupAccountUI()