Skip to content
Snippets Groups Projects
Commit 01d1c1ed authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Fix empty view state in save playlist dialog

parent 2618292d
No related branches found
No related tags found
No related merge requests found
......@@ -81,7 +81,6 @@ public class SavePlaylistDialog extends DialogFragment implements View.OnClickLi
super.onCreate(savedInstanceState);
mMedialibrary = VLCApplication.getMLInstance();
mAdapter = new AudioBrowserAdapter(MediaLibraryItem.TYPE_PLAYLIST, this, false);
mAdapter.addAll(new ArrayList<MediaLibraryItem>(Arrays.asList(mMedialibrary.getPlaylists())));
mTracks = (MediaWrapper[]) getArguments().getParcelableArray(KEY_TRACKS);
mNewTrack = (MediaWrapper[]) getArguments().getParcelableArray(KEY_NEW_TRACKS);
}
......@@ -125,7 +124,7 @@ public class SavePlaylistDialog extends DialogFragment implements View.OnClickLi
mEditText.setOnEditorActionListener(this);
mListView.setLayoutManager(new LinearLayoutManager(view.getContext()));
mListView.setAdapter(mAdapter);
updateEmptyView();
mAdapter.update(new ArrayList<MediaLibraryItem>(Arrays.asList(mMedialibrary.getPlaylists())));
}
void updateEmptyView() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment