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
upstream-sync
Jocelyne Abi Haidar 4 years ago committed by Arturo Mejia
parent 10dadb838e
commit 88233ef42d

@ -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() {

Loading…
Cancel
Save