[Android] Set media browser on file picker creation
Geoffrey Métais
git at videolan.org
Thu Feb 16 18:22:43 CET 2017
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Feb 16 17:54:53 2017 +0100| [240ae27efed5dec30da3044109db12589c874110] | committer: Geoffrey Métais
Set media browser on file picker creation
> https://code.videolan.org/videolan/vlc-android/commit/240ae27efed5dec30da3044109db12589c874110
---
vlc-android/src/org/videolan/vlc/gui/browser/FilePickerFragment.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
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 aa4c791..8708506 100644
--- a/vlc-android/src/org/videolan/vlc/gui/browser/FilePickerFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/browser/FilePickerFragment.java
@@ -61,6 +61,8 @@ public class FilePickerFragment extends FileBrowserFragment {
super.onCreate(bundle);
mAdapter = new FilePickerAdapter(this);
mRoot = defineIsRoot();
+ mMediaBrowser = new MediaBrowser(VLCInstance.get(), this);
+ mMediaBrowser.setIgnoreFileTypes("db,nfo,ini,jpg,jpeg,ljpg,gif,png,pgm,pgmyuv,pbm,pam,tga,bmp,pnm,xpm,xcf,pcx,tif,tiff,lbm,sfv");
}
@Override
@@ -72,8 +74,6 @@ public class FilePickerFragment extends FileBrowserFragment {
@Override
public void onStart() {
super.onStart();
- mMediaBrowser = new MediaBrowser(VLCInstance.get(), this);
- 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