Commit 49b62f4c authored by Geoffrey Métais's avatar Geoffrey Métais

Init MediaBrowser at fragment creation

parent 62ff1665
......@@ -108,6 +108,7 @@ public abstract class BaseBrowserFragment extends MediaBrowserFragment implement
public void onCreate(Bundle bundle){
super.onCreate(bundle);
mLibVLC = VLCInstance.get();
mMediaBrowser = new MediaBrowser(mLibVLC, this);
if (bundle == null)
bundle = getArguments();
......@@ -258,8 +259,6 @@ public abstract class BaseBrowserFragment extends MediaBrowserFragment implement
}
protected void update(){
if (mMediaBrowser == null)
mMediaBrowser = new MediaBrowser(mLibVLC, this);
if (mReadyToDisplay) {
updateEmptyView();
if (mAdapter.isEmpty()) {
......
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