[Android] Reset connection status when app goes background

Geoffrey Métais git at videolan.org
Thu Jul 19 13:18:05 CEST 2018


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Jul 19 10:57:57 2018 +0200| [1ee8fa825f43a10aa2ea89d647c965ac7a418879] | committer: Geoffrey Métais

Reset connection status when app goes background

> https://code.videolan.org/videolan/vlc-android/commit/1ee8fa825f43a10aa2ea89d647c965ac7a418879
---

 vlc-android/src/org/videolan/vlc/ExternalMonitor.java | 1 +
 1 file changed, 1 insertion(+)

diff --git a/vlc-android/src/org/videolan/vlc/ExternalMonitor.java b/vlc-android/src/org/videolan/vlc/ExternalMonitor.java
index 1ea271a94..036dc24e6 100644
--- a/vlc-android/src/org/videolan/vlc/ExternalMonitor.java
+++ b/vlc-android/src/org/videolan/vlc/ExternalMonitor.java
@@ -95,6 +95,7 @@ public class ExternalMonitor extends BroadcastReceiver implements LifecycleObser
     static void unregister() {
         final Context ctx = VLCApplication.getAppContext();
         ctx.unregisterReceiver(instance);
+        connected.setValue(false);
     }
 
     public static ExternalMonitor getInstance() {



More information about the Android mailing list