summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Andrei Stingaceanu <stg@google.com> 2015-05-20 09:32:49 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2015-05-20 09:32:50 +0000
commit8c44e74524a43ad7cb41b1641bb2dac75cf9c7e8 (patch)
tree429fbfa7ee1955c43dce0b54b06805d9a91951bd
parent6f611d72679f69f2a7eb544407a0c8ec02f74595 (diff)
parent975a8d0f4d6b5c2ec954c4db11d95de1a553227e (diff)
Merge "Landscape extracted mode - floating toolbar interference" into mnc-dev
-rw-r--r--core/java/android/widget/Editor.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/core/java/android/widget/Editor.java b/core/java/android/widget/Editor.java
index d558c7bc7725..f5a99d1bf208 100644
--- a/core/java/android/widget/Editor.java
+++ b/core/java/android/widget/Editor.java
@@ -1699,6 +1699,15 @@ public class Editor {
* @return true if the selection mode was actually started.
*/
private boolean startSelectionActionModeWithoutSelection() {
+ if (extractedTextModeWillBeStarted()) {
+ // Cancel the single tap delayed runnable.
+ if (mSelectionModeWithoutSelectionRunnable != null) {
+ mTextView.removeCallbacks(mSelectionModeWithoutSelectionRunnable);
+ }
+
+ return false;
+ }
+
if (mSelectionActionMode != null) {
// Selection action mode is already started
// TODO: revisit invocations to minimize this case.
@@ -1740,6 +1749,15 @@ public class Editor {
}
private boolean startSelectionActionModeWithSelectionInternal() {
+ if (extractedTextModeWillBeStarted()) {
+ // Cancel the single tap delayed runnable.
+ if (mSelectionModeWithoutSelectionRunnable != null) {
+ mTextView.removeCallbacks(mSelectionModeWithoutSelectionRunnable);
+ }
+
+ return false;
+ }
+
if (mSelectionActionMode != null) {
// Selection action mode is already started
mSelectionActionMode.invalidate();