[fenix] No issue: Update Account UI and visibility in onCreate so it doesn't flash (https://github.com/mozilla-mobile/fenix/pull/2804)

pull/600/head
Emily Kager 5 years ago committed by Jeff Boek
parent 65ccd287b0
commit 1560dff1e3

@ -61,6 +61,8 @@ class SettingsFragment : PreferenceFragmentCompat(), CoroutineScope, AccountObse
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
job = Job()
setupAccountUI()
updateSignInVisibility()
preferenceManager.sharedPreferences.registerOnSharedPreferenceChangeListener { sharedPreferences, key ->
try {

Loading…
Cancel
Save