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() {
@Override
public void run() {
if (isDetached())
return;
if (media.getType() == MediaWrapper.TYPE_DIR && FileUtils.canSave(media)) {
mDb = MediaDatabase.getInstance();
detailsOverview.setImageDrawable(getResources().getDrawable(TextUtils.equals(media.getUri().getScheme(),"file")
......
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