Index: content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java |
diff --git a/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java b/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java |
index caa1c48185b691f743e5a067f123be5e2555064c..e6eb23a536823ecf8c691e22078af60c14dc27e6 100644 |
--- a/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java |
+++ b/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java |
@@ -1250,6 +1250,7 @@ public class ContentViewCore implements AccessibilityStateChangeListener, Screen |
mGestureStateListenersIterator.hasNext();) { |
mGestureStateListenersIterator.next().onSingleTap(consumed, x, y); |
} |
+ hidePastePopup(); |
} |
@SuppressWarnings("unused") |
@@ -2241,6 +2242,7 @@ public class ContentViewCore implements AccessibilityStateChangeListener, Screen |
} else { |
showPastePopup(xAnchor, yAnchor); |
} |
+ mWasPastePopupShowingOnInsertionDragStart = false; |
break; |
case SelectionEventType.INSERTION_HANDLE_CLEARED: |
@@ -2255,6 +2257,11 @@ public class ContentViewCore implements AccessibilityStateChangeListener, Screen |
break; |
case SelectionEventType.INSERTION_HANDLE_DRAG_STOPPED: |
+ if (mWasPastePopupShowingOnInsertionDragStart) { |
+ showPastePopup(xAnchor, yAnchor); |
+ } |
+ mWasPastePopupShowingOnInsertionDragStart = false; |
+ break; |
case SelectionEventType.SELECTION_ESTABLISHED: |
case SelectionEventType.SELECTION_DISSOLVED: |
break; |