Closes #4171: Do not pause deviceEventObserver on lifecycle events

nightly-build-test
Jonathan Almeida 5 years ago committed by Grisha Kruglov
parent f110ba2861
commit 5ecdce6ba6

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

Loading…
Cancel
Save