Merge "Show drag handles after finishing batch edit if needed." into nyc-dev

am: be1cd9f5ce

* commit 'be1cd9f5ce6eb2bc37b15258c6ab22e2fc5592e1':
  Show drag handles after finishing batch edit if needed.

Change-Id: Ie831efddf37c32c003936d5214d30f7d59878fb8
This commit is contained in:
Keisuke Kuroyanagi
2016-05-04 00:30:11 +00:00
committed by android-build-merger

View File

@@ -1465,6 +1465,16 @@ public class Editor {
// sendUpdateSelection knows to avoid sending if the selection did
// not actually change.
sendUpdateSelection();
// Show drag handles if they were blocked by batch edit mode.
if (mTextActionMode != null) {
final CursorController cursorController = mTextView.hasSelection() ?
getSelectionController() : getInsertionController();
if (cursorController != null && !cursorController.isActive()
&& !cursorController.isCursorBeingModified()) {
cursorController.show();
}
}
}
static final int EXTRACT_NOTHING = -2;