Merge "Patches for the Paste window behavior." into honeycomb
diff --git a/core/java/android/widget/TextView.java b/core/java/android/widget/TextView.java
index df933cb..8cb725a 100644
--- a/core/java/android/widget/TextView.java
+++ b/core/java/android/widget/TextView.java
@@ -7364,7 +7364,7 @@
stopSelectionActionMode();
boolean selectAllGotFocus = mSelectAllOnFocus && mTouchFocusSelected;
- if (hasInsertionController() && !selectAllGotFocus) {
+ if (hasInsertionController() && !selectAllGotFocus && mText.length() > 0) {
getInsertionController().show();
}
}
@@ -8887,6 +8887,9 @@
mLastParentX = coords[0];
mLastParentY = coords[1];
mIsDragging = true;
+ if (mIsInsertionHandle) {
+ mTouchTimer = SystemClock.uptimeMillis();
+ }
break;
}
@@ -9035,6 +9038,7 @@
if (offset != previousOffset) {
updateOffset(handle, offset);
+ removePastePopupCallback();
}
hideDelayed();
}