Clear Selection on ACTION_UP if longClickCopySpan is not found.

This commit is contained in:
Nicholas
2022-09-07 08:40:31 -04:00
committed by Greyson Parrelli
parent 9558513190
commit a335130ad4

View File

@@ -82,6 +82,8 @@ public class LongClickMovementMethod extends LinkMovementMethod {
this.currentSpan = aSingleSpan;
this.widget = widget;
return gestureDetector.onTouchEvent(event);
} else if (action == MotionEvent.ACTION_UP && Selection.getSelectionEnd(buffer) > 0){
Selection.setSelection(buffer, 0);
}
} else if (action == MotionEvent.ACTION_CANCEL) {
// Remove Selections.