Commit 88233ef4 authored by Jocelyne Abi Haidar's avatar Jocelyne Abi Haidar Committed by Arturo Mejia
Browse files

For #15725: Set up preferences in onCreatePreferences instead of onResume

set up preferences in onCreatePreferences instead of onResume so that their visibility is determined before the screen appears rather than after
parent 10dadb83
......@@ -34,12 +34,13 @@ class CustomizationFragment : PreferenceFragmentCompat() {
override fun onCreatePreferences(savedInstanceState: Bundle?, rootKey: String?) {
setPreferencesFromResource(R.xml.customization_preferences, rootKey)
setupPreferences()
}
override fun onResume() {
super.onResume()
showToolbar(getString(R.string.preferences_customize))
setupPreferences()
}
private fun setupPreferences() {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment