[Android] Do not filter subs in subtitles picker

Geoffrey Métais git at videolan.org
Tue Jun 30 10:36:16 CEST 2015


vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Jun 30 09:52:49 2015 +0200| [805a69b09d96d126fc294ac01216a189bd4737a4] | committer: Geoffrey Métais

Do not filter subs in subtitles picker

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

 .../src/org/videolan/vlc/gui/browser/FileBrowserFragment.java     |    5 +++++
 .../src/org/videolan/vlc/gui/browser/FilePickerFragment.java      |    1 +
 2 files changed, 6 insertions(+)

diff --git a/vlc-android/src/org/videolan/vlc/gui/browser/FileBrowserFragment.java b/vlc-android/src/org/videolan/vlc/gui/browser/FileBrowserFragment.java
index 813fd7c..f33bb73 100644
--- a/vlc-android/src/org/videolan/vlc/gui/browser/FileBrowserFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/browser/FileBrowserFragment.java
@@ -128,6 +128,11 @@ public class FileBrowserFragment extends BaseBrowserFragment {
 
     public void onStart(){
         super.onStart();
+    }
+
+    @Override
+    public void onResume() {
+        super.onResume();
         if (mReadyToDisplay)
             update();
     }
diff --git a/vlc-android/src/org/videolan/vlc/gui/browser/FilePickerFragment.java b/vlc-android/src/org/videolan/vlc/gui/browser/FilePickerFragment.java
index 65200a6..5599ad5 100644
--- a/vlc-android/src/org/videolan/vlc/gui/browser/FilePickerFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/browser/FilePickerFragment.java
@@ -59,6 +59,7 @@ public class FilePickerFragment extends FileBrowserFragment {
     @Override
     public void onStart() {
         super.onStart();
+        mMediaBrowser.setIgnoreFileTypes("db,nfo,ini,jpg,jpeg,ljpg,gif,png,pgm,pgmyuv,pbm,pam,tga,bmp,pnm,xpm,xcf,pcx,tif,tiff,lbm,sfv");
         getActivity().setTitle(getTitle());
     }
 



More information about the Android mailing list