[Android] Update Network browser only for network change

Geoffrey Métais git at videolan.org
Tue Nov 22 17:05:41 CET 2016


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Nov 22 16:14:26 2016 +0100| [dc23b1c68c996a2e9636200fd3039202a951c753] | committer: Geoffrey Métais

Update Network browser only for network change

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

 .../src/org/videolan/vlc/gui/tv/browser/VerticalGridActivity.java      | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/tv/browser/VerticalGridActivity.java b/vlc-android/src/org/videolan/vlc/gui/tv/browser/VerticalGridActivity.java
index e81d4f9..38db2c0 100644
--- a/vlc-android/src/org/videolan/vlc/gui/tv/browser/VerticalGridActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/tv/browser/VerticalGridActivity.java
@@ -88,7 +88,8 @@ public class VerticalGridActivity extends BaseTvActivity implements BrowserActiv
 
     @Override
     protected void onNetworkUpdated() {
-        mFragment.updateList();
+        if (mFragment instanceof NetworkBrowserFragment)
+            mFragment.updateList();
     }
 
     public boolean onKeyDown(int keyCode, KeyEvent event)  {



More information about the Android mailing list