Closes #4171: Do not pause deviceEventObserver on lifecycle events
This commit is contained in:
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…
Reference in New Issue