Clear Selection on ACTION_UP if longClickCopySpan is not found.

fork-5.53.8
Nicholas 2022-09-07 08:40:31 -04:00 zatwierdzone przez Greyson Parrelli
rodzic 9558513190
commit a335130ad4
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -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.