1
0
Fork 0
fenix/app/src/main/java/org/mozilla/fenix/utils
Grisha Kruglov fe3c163a20 Fix how we reflect FxA state in preference
This cleans up how we're displaying account state in the main preference UI.
Before when it worked, it worked mostly accidentally.
'launch' wrapper around "update ui" methods would trigger a race condition
between binding the account pref view holder and actually updating that view
with values. Sometimes the "update view with values" would happen after view
was bound, and the UI will be correct. Most of the time it would happen before,
and so there will be nothing to update and we'd get into an inconsistent state.

This also splits up the "accountpreference" into two: account is good,
and account needs re-auth. This greatly simplifies their management.
2019-06-05 14:38:06 -07:00
..
ClearableEditText.kt For #2723 - Fixes theme manager 2019-05-30 16:38:31 -07:00
ItsNotBrokenSnack.kt For #1573 - Polish Collections UI Component (#2212) 2019-05-02 10:53:40 -05:00
Settings.kt Fix how we reflect FxA state in preference 2019-06-05 14:38:06 -07:00
Undo.kt No issue: improve allowUndo 2019-05-30 10:48:59 -07:00