Commit ab79e1b1 authored by Geoffrey Métais's avatar Geoffrey Métais

Disable long-press on ML storage on phone/tablet

parent bd9f84f7
......@@ -199,7 +199,7 @@ public class BaseBrowserAdapter extends SortableAdapter<MediaLibraryItem, BaseBr
public boolean onLongClick(View v) {
int position = getLayoutPosition();
if (getItem(position).getItemType() == TYPE_STORAGE) {
if (getItem(position).getItemType() == TYPE_STORAGE && VLCApplication.showTvUi()) {
binding.browserCheckbox.toggle();
onCheckBoxClick(binding.browserCheckbox);
return true;
......
......@@ -872,7 +872,7 @@ public abstract class BaseBrowserFragment extends SortableFragment<BaseBrowserAd
}
public boolean onLongClick(View v, int position, MediaLibraryItem item) {
if (mActionMode != null) return false;
if (mActionMode != null || item.getItemType() != MediaLibraryItem.TYPE_MEDIA) return false;
final MediaWrapper mediaWrapper = (MediaWrapper) item;
if (mediaWrapper.getType() == MediaWrapper.TYPE_AUDIO ||
mediaWrapper.getType() == MediaWrapper.TYPE_VIDEO ||
......
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