Skip to content
Snippets Groups Projects
Commit 91f5ffb0 authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

ExternalMonitor: Ignore lifecycle on some devices

parent 6ad020c8
No related branches found
No related tags found
No related merge requests found
......@@ -101,7 +101,7 @@ object ExternalMonitor : BroadcastReceiver(), LifecycleObserver, CoroutineScope
init {
launch {
ProcessLifecycleOwner.get().lifecycle.addObserver(this@ExternalMonitor)
if (!AndroidDevices.watchDevices) ProcessLifecycleOwner.get().lifecycle.addObserver(this@ExternalMonitor)
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment