[components] Closes https://github.com/mozilla-mobile/android-components/issues/6053...
commit612da4f9b9781ff23010987e1ba5e85c9a8a6cb0
authorGrisha Kruglov <gkruglov@mozilla.com>
Mon, 24 Feb 2020 22:37:21 +0000 (24 14:37 -0800)
committerGrisha Kruglov <gkruglov@mozilla.com>
Mon, 24 Feb 2020 22:37:21 +0000 (24 14:37 -0800)
tree49918496bf4559cd4f9cb790aadb65d1ac44409a
parent666ff0ce4275c16c4fb25c82fadefe70ccbb4d6a
[components] Closes https://github.com/mozilla-mobile/android-components/issues/6053: Register an account state persistence callback for offline migration recovery

This fixes a problem where an account state persistence callback was not registered
during the recovery part of the offline fxa migration flow.

This caused us to successfully migrate, but then migrate again and again (always successfully)
upon application restart, since we wouldn't remember our own success.
mobile/android/android-components/components/service/firefox-accounts/src/main/java/mozilla/components/service/fxa/manager/FxaAccountManager.kt
mobile/android/android-components/components/service/firefox-accounts/src/test/java/mozilla/components/service/fxa/FxaAccountManagerTest.kt