mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-23 11:15:44 +00:00
Clear Selection on ACTION_UP if longClickCopySpan is not found.
This commit is contained in:
committed by
Greyson Parrelli
parent
9558513190
commit
a335130ad4
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user