Dismiss magnifier correctly in concurrent editing scenario

Fixes: 186505600
Test: manual testing
Change-Id: I864f03e976be92c232f51a576043cb49731cda26
This commit is contained in:
Mihai Popa
2021-04-28 14:49:18 +00:00
parent a891293720
commit d32571e9b5

View File

@@ -6684,13 +6684,13 @@ public class Editor {
if (TextView.DEBUG_CURSOR) {
logCursor("SelectionModifierCursorController: onTouchEvent", "ACTION_UP");
}
if (mEndHandle != null) {
mEndHandle.dismissMagnifier();
}
if (!isDragAcceleratorActive()) {
break;
}
updateSelection(event);
if (mEndHandle != null) {
mEndHandle.dismissMagnifier();
}
// No longer dragging to select text, let the parent intercept events.
mTextView.getParent().requestDisallowInterceptTouchEvent(false);