Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Commit

Permalink
Post: changelog; add a follow-up around persisting the state
Browse files Browse the repository at this point in the history
  • Loading branch information
Grisha Kruglov committed Nov 20, 2019
1 parent f1753c3 commit 767cf4b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,10 @@ open class FxaAccountManager(
// list, although that's probably an overkill.
@Volatile private lateinit var account: OAuthAccount
@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
private val eventQueue = ConcurrentLinkedQueue<Event>()

Expand Down
4 changes: 4 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ permalink: /changelog/
* **feature-prompts** and **feature-downloads**
* 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

* [Commits](https://github.com/mozilla-mobile/android-components/compare/v22.0.0...master)
Expand Down

0 comments on commit 767cf4b

Please sign in to comment.