From bcdf0ab13df0bb19ec897cd614f117b4b1da74f7 Mon Sep 17 00:00:00 2001 From: Abodunrinwa Toki Date: Sat, 25 Apr 2015 00:11:25 +0100 Subject: [PATCH] DO NOT MERGE: Update floatingtoolbar position when cursor moves. NOTE: This is only done on ACTION_UP event since the toolbar is going to be hidden while one is dragging the handles. Change-Id: Id09fc076edb0117ebceb26395ac91ee4d2283c2d --- core/java/android/widget/Editor.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/java/android/widget/Editor.java b/core/java/android/widget/Editor.java index 39b99073675f8..1455f23a40936 100644 --- a/core/java/android/widget/Editor.java +++ b/core/java/android/widget/Editor.java @@ -3847,6 +3847,10 @@ public class Editor { startSelectionActionModeWithoutSelection(); } } + } else { + if (mSelectionActionMode != null) { + mSelectionActionMode.invalidateContentRect(); + } } hideAfterDelay(); break;