Commit 240ae27e authored by Geoffrey Métais's avatar Geoffrey Métais

Set media browser on file picker creation

parent 80f6d0c5
......@@ -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());
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment