am 28b5b144: Fix: Selection handles are wrongly shown.

* commit '28b5b1444965fcdb471a8c2ff09f6f2eb53b337b':
  Fix: Selection handles are wrongly shown.
This commit is contained in:
Keisuke Kuroyanagi
2015-04-27 10:31:28 +00:00
committed by Android Git Automerger

View File

@@ -3023,8 +3023,10 @@ public class Editor {
public SelectionActionModeCallback() {
SelectionModifierCursorController selectionController = getSelectionController();
if (selectionController.mStartHandle == null) {
// As these are for initializing selectionController, hide() must be called.
selectionController.initDrawables();
selectionController.initHandles();
selectionController.hide();
}
mSelectionHandleHeight = Math.max(
mSelectHandleLeft.getMinimumHeight(), mSelectHandleRight.getMinimumHeight());