Closes #4171: Do not pause deviceEventObserver on lifecycle events

This commit is contained in:
Jonathan Almeida 2019-07-18 23:02:59 -04:00 committed by Grisha Kruglov
parent f110ba2861
commit 5ecdce6ba6
1 changed files with 1 additions and 1 deletions

View File

@ -172,7 +172,7 @@ class BackgroundServices(
// See https://github.com/mozilla-mobile/android-components/issues/3732
setOf("https://identity.mozilla.com/apps/oldsync")
).also {
it.registerForDeviceEvents(deviceEventObserver, ProcessLifecycleOwner.get(), true)
it.registerForDeviceEvents(deviceEventObserver, ProcessLifecycleOwner.get(), false)
// This should be removed in the future. See comment on `accountObserver`.
if (FeatureFlags.sendTabEnabled && pushConfig != null) {