Commit 86ab50e3 authored by Geoffrey Métais's avatar Geoffrey Métais

Prevent ClassCastException

parent 778ca49f
......@@ -819,7 +819,7 @@ public abstract class BaseBrowserFragment extends MediaBrowserFragment implement
}
public void onCtxClick(View v, int position, MediaLibraryItem item) {
if (mActionMode == null)
if (mActionMode == null && item.getItemType() == MediaLibraryItem.TYPE_MEDIA)
mRecyclerView.openContextMenu(position);
}
......
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