[Android] Fix network state monitoring in Network Browser

Geoffrey Métais git at videolan.org
Tue Apr 21 19:22:47 CEST 2015


vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Apr 21 11:03:24 2015 +0200| [366e7df11501fd0fa77e363573ada21647240fc1] | committer: Geoffrey Métais

Fix network state monitoring in Network Browser

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=366e7df11501fd0fa77e363573ada21647240fc1
---

 .../org/videolan/vlc/gui/browser/NetworkBrowserFragment.java   |    8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/vlc-android/src/org/videolan/vlc/gui/browser/NetworkBrowserFragment.java b/vlc-android/src/org/videolan/vlc/gui/browser/NetworkBrowserFragment.java
index 95e604c..7ed591f 100644
--- a/vlc-android/src/org/videolan/vlc/gui/browser/NetworkBrowserFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/browser/NetworkBrowserFragment.java
@@ -75,6 +75,14 @@ public class NetworkBrowserFragment extends BaseBrowserFragment {
         getActivity().unregisterReceiver(networkReceiver);
     }
 
+    @Override
+    protected void update() {
+        if (!AndroidDevices.hasLANConnection())
+            updateEmptyView();
+        else
+            super.update();
+    }
+
     protected void updateDisplay() {
         if (mRoot)
             updateFavorites();



More information about the Android mailing list