[Android] Init mediabrowser if needed in browseRoot()

Geoffrey Métais git at videolan.org
Wed Jul 19 14:10:03 CEST 2017


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Jul 19 11:32:03 2017 +0200| [007cac52f3a90b1c1fb75215185c07efa3603ab3] | committer: Geoffrey Métais

Init mediabrowser if needed in browseRoot()

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

 .../src/org/videolan/vlc/gui/browser/NetworkBrowserFragment.java        | 2 ++
 1 file changed, 2 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 781d0b43b..df1407c46 100644
--- a/vlc-android/src/org/videolan/vlc/gui/browser/NetworkBrowserFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/browser/NetworkBrowserFragment.java
@@ -144,6 +144,8 @@ public class NetworkBrowserFragment extends BaseBrowserFragment {
             runOnBrowserThread(new Runnable() {
                 @Override
                 public void run() {
+                    if (mMediaBrowser == null)
+                        initMediaBrowser(NetworkBrowserFragment.this);
                     mMediaBrowser.discoverNetworkShares();
                 }
             });



More information about the Android mailing list