Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3651c201 authored by Aran Ink's avatar Aran Ink Committed by Android (Google) Code Review
Browse files

Merge "Only attach long-press handlers to LongPressActions."

parents 28345b2c b4199d9a
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1045,7 +1045,9 @@ public class GlobalActionsDialog implements DialogInterface.OnDismissListener,
            Action action = getItem(position);
            View view = action.create(mContext, convertView, parent, LayoutInflater.from(mContext));
            view.setOnClickListener(v -> onClickItem(position));
            if (action instanceof LongPressAction) {
                view.setOnLongClickListener(v -> onLongClickItem(position));
            }
            return view;
        }