Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Tor Project
Applications
fenix
Commits
316215ca
Commit
316215ca
authored
Feb 08, 2020
by
Emily Kager
Committed by
Emily Kager
Feb 10, 2020
Browse files
For #7999 - for Leanplum fxaHasSyncedItems use SyncEnginesStorage
parent
f51069cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/src/main/java/org/mozilla/fenix/components/BackgroundServices.kt
View file @
316215ca
...
...
@@ -28,6 +28,7 @@ import mozilla.components.service.fxa.SyncEngine
import
mozilla.components.service.fxa.manager.FxaAccountManager
import
mozilla.components.service.fxa.manager.SCOPE_SESSION
import
mozilla.components.service.fxa.manager.SCOPE_SYNC
import
mozilla.components.service.fxa.manager.SyncEnginesStorage
import
mozilla.components.service.fxa.sync.GlobalSyncableStoreProvider
import
mozilla.components.service.sync.logins.SyncableLoginsStore
import
mozilla.components.support.base.log.logger.Logger
...
...
@@ -156,7 +157,9 @@ class BackgroundServices(
)
).
also
{
accountManager
->
// TODO this needs to change once we have a SyncManager
context
.
settings
().
fxaHasSyncedItems
=
syncConfig
?.
supportedEngines
?.
isNotEmpty
()
?:
false
context
.
settings
().
fxaHasSyncedItems
=
accountManager
.
authenticatedAccount
()
?.
let
{
SyncEnginesStorage
(
context
).
getStatus
().
any
{
it
.
value
}
}
?:
false
// Register a telemetry account observer to keep track of FxA auth metrics.
accountManager
.
register
(
telemetryAccountObserver
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment