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

Commit 0d0adbb3 authored by Ben Lin's avatar Ben Lin
Browse files

Right-click should do selection and set selection range begin.

Bug: 30634393
Change-Id: I4c52c087bc058ca7eec4a54c6ed74a6ae8f9ae0b
parent bde20e15
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