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

Commit 71585d02 authored by Ben Lin's avatar Ben Lin Committed by Android (Google) Code Review
Browse files

Merge "Right-click should do selection and set selection range begin." into nyc-andromeda-dev

parents 35c98289 0d0adbb3
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -476,6 +476,7 @@ public class DirectoryFragment extends Fragment
            final DocumentHolder doc = getTarget(e);
            if (!mSelectionMgr.getSelection().contains(doc.getModelId())) {
                mSelectionMgr.replaceSelection(Collections.singleton(doc.getModelId()));
                mSelectionMgr.setSelectionRangeBegin(doc.getAdapterPosition());
            }

            // We are registering for context menu here so long-press doesn't trigger this