Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,15 @@ public ContextMenuView(final Context context) {
gestureDetector = new GestureDetector(context, new GestureDetector.SimpleOnGestureListener() {
@Override
public boolean onSingleTapConfirmed(MotionEvent e) {
if (dropdownMenuMode) {
if (dropdownMenuMode && !disabled) {
contextMenu.show();
}
return super.onSingleTapConfirmed(e);
}

@Override
public void onLongPress(MotionEvent e) {
if (!dropdownMenuMode) {
if (!dropdownMenuMode && !disabled) {
contextMenu.show();
}
}
Expand Down Expand Up @@ -107,8 +107,6 @@ public void setActions(@Nullable ReadableArray actions) {
Menu menu = contextMenu.getMenu();
menu.clear();

if (disabled) { return; }

for (int i = 0; i < actions.size(); i++) {
ReadableMap action = actions.getMap(i);
@Nullable Drawable systemIcon = getResourceWithName(getContext(), action.getString("systemIcon"));
Expand Down