[Android] Browse by Uri

Geoffrey Métais git at videolan.org
Mon Jun 1 11:29:10 CEST 2015


vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Sat May 30 15:29:37 2015 +0200| [63d8b474f9cff0867f71e8e4e7accd2dc8115024] | committer: Geoffrey Métais

Browse by Uri

Fixes file browsing

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

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

diff --git a/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.java b/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.java
index 36f4470..fb0bd5d 100644
--- a/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/browser/BaseBrowserFragment.java
@@ -24,6 +24,7 @@ package org.videolan.vlc.gui.browser;
 
 import android.annotation.TargetApi;
 import android.content.Intent;
+import android.net.Uri;
 import android.os.Build;
 import android.os.Bundle;
 import android.os.Message;
@@ -290,7 +291,7 @@ public abstract class BaseBrowserFragment extends MediaBrowserFragment implement
         if (mRoot)
             browseRoot();
         else
-            mMediaBrowser.browse(mMrl);
+            mMediaBrowser.browse(mCurrentMedia != null ? mCurrentMedia.getUri() : Uri.parse(mMrl));
         mHandler.sendEmptyMessageDelayed(BrowserFragmentHandler.MSG_SHOW_LOADING, 300);
     }
 



More information about the Android mailing list