Commit 767cf4b8 authored by Grisha Kruglov's avatar Grisha Kruglov
Browse files

Post: changelog; add a follow-up around persisting the state

parent f1753c33
...@@ -233,6 +233,10 @@ open class FxaAccountManager( ...@@ -233,6 +233,10 @@ open class FxaAccountManager(
// list, although that's probably an overkill. // list, although that's probably an overkill.
@Volatile private lateinit var account: OAuthAccount @Volatile private lateinit var account: OAuthAccount
@Volatile private var profile: Profile? = null @Volatile private var profile: Profile? = null
// We'd like to persist this state, so that we can short-circuit transition to AuthenticationProblem on
// initialization, instead of triggering the full state machine knowing in advance we'll hit auth problems.
// See https://github.com/mozilla-mobile/android-components/issues/5102
@Volatile private var state = AccountState.Start @Volatile private var state = AccountState.Start
private val eventQueue = ConcurrentLinkedQueue<Event>() private val eventQueue = ConcurrentLinkedQueue<Event>()
......
...@@ -18,6 +18,10 @@ permalink: /changelog/ ...@@ -18,6 +18,10 @@ permalink: /changelog/
* **feature-prompts** and **feature-downloads** * **feature-prompts** and **feature-downloads**
* Fix [issue #6439](https://github.com/mozilla-mobile/fenix/issues/6439) "Crash when downloading Image" * Fix [issue #6439](https://github.com/mozilla-mobile/fenix/issues/6439) "Crash when downloading Image"
* **service-firefox-accounts**
* Account profile cache is now used, removing a network call from most instances of account manager instantiation.
* Fixed a bug where account would disappear after restarting an app which hit authentication problems.
# 22.0.0 # 22.0.0
* [Commits](https://github.com/mozilla-mobile/android-components/compare/v22.0.0...master) * [Commits](https://github.com/mozilla-mobile/android-components/compare/v22.0.0...master)
......
Supports Markdown
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