Commit 875c5d33 authored by Geoffrey Métais's avatar Geoffrey Métais

Prevent IllegalStateException

parent 7347cde7
......@@ -195,6 +195,8 @@ public class MediaItemDetailsFragment extends DetailsFragment implements Playbac
VLCApplication.runOnMainThread(new Runnable() {
public void run() {
if (isDetached())
if (media.getType() == MediaWrapper.TYPE_DIR && FileUtils.canSave(media)) {
mDb = MediaDatabase.getInstance();
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