[Android] ExternalMonitor: Ignore lifecycle on some devices
Geoffrey Métais
git at videolan.org
Mon Dec 10 18:04:56 CET 2018
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Dec 10 18:04:01 2018 +0100| [91f5ffb0044d679a1d370feac0a3d0d36f11b57d] | committer: Geoffrey Métais
ExternalMonitor: Ignore lifecycle on some devices
> https://code.videolan.org/videolan/vlc-android/commit/91f5ffb0044d679a1d370feac0a3d0d36f11b57d
---
vlc-android/src/org/videolan/vlc/ExternalMonitor.kt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vlc-android/src/org/videolan/vlc/ExternalMonitor.kt b/vlc-android/src/org/videolan/vlc/ExternalMonitor.kt
index 775398b94..af9c1bee0 100644
--- a/vlc-android/src/org/videolan/vlc/ExternalMonitor.kt
+++ b/vlc-android/src/org/videolan/vlc/ExternalMonitor.kt
@@ -101,7 +101,7 @@ object ExternalMonitor : BroadcastReceiver(), LifecycleObserver, CoroutineScope
init {
launch {
- ProcessLifecycleOwner.get().lifecycle.addObserver(this at ExternalMonitor)
+ if (!AndroidDevices.watchDevices) ProcessLifecycleOwner.get().lifecycle.addObserver(this at ExternalMonitor)
}
}
More information about the Android
mailing list