Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 28b5b144 authored by Keisuke Kuroyanagi's avatar Keisuke Kuroyanagi
Browse files

Fix: Selection handles are wrongly shown.

Selection handles were always shown when selection action
mode is started at first time. When the action mode is
started without a selection, only insertion handle must be
shown.

Bug: 20264980
Bug: 20407551

Change-Id: I630804e007f795d28f87e3fa6cba0de5bf588c78
parent 78f895a7
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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());