@Google: really nobody expects a double tap to end multi selection

This commit is contained in:
M66B 2019-02-13 07:50:59 +00:00
parent 32e08b49d5
commit ae6176df0d
1 changed files with 5 additions and 0 deletions

View File

@ -106,6 +106,11 @@ final class TouchInputHandler<K> extends MotionInputHandler<K> {
: mOnItemActivatedListener.onItemActivated(item, e);
}
@Override
public boolean onDoubleTapEvent(MotionEvent e) {
return mSelectionTracker.hasSelection();
}
@Override
public void onLongPress(@NonNull MotionEvent e) {
if (!mDetailsLookup.overItemWithSelectionKey(e)) {