kopia lustrzana https://github.com/ryukoposting/Signal-Android
Clear Selection on ACTION_UP if longClickCopySpan is not found.
rodzic
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.
|
||||
|
|
Ładowanie…
Reference in New Issue