Index: content/public/android/java/src/org/chromium/content/browser/input/PastePopupMenu.java |
diff --git a/content/public/android/java/src/org/chromium/content/browser/input/PastePopupMenu.java b/content/public/android/java/src/org/chromium/content/browser/input/PastePopupMenu.java |
index b2127709b32de3fe024bd79f46e2eb7e17280e3f..44726a98620fe81bcb6dd50edc4f1a936ecb2a48 100644 |
--- a/content/public/android/java/src/org/chromium/content/browser/input/PastePopupMenu.java |
+++ b/content/public/android/java/src/org/chromium/content/browser/input/PastePopupMenu.java |
@@ -171,7 +171,11 @@ public class PastePopupMenu implements OnClickListener { |
coords[0] = Math.min(screenWidth - width, coords[0]); |
} |
- mContainer.showAtLocation(mParent, Gravity.NO_GRAVITY, coords[0], coords[1]); |
+ if (!isShowing()) { |
+ mContainer.showAtLocation(mParent, Gravity.NO_GRAVITY, coords[0], coords[1]); |
+ } else { |
+ mContainer.update(coords[0], coords[1], -1, -1); |
+ } |
} |
private int viewIndex(boolean onTop) { |