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

Commit fe14293f authored by Gilles Debunne's avatar Gilles Debunne
Browse files

resolved conflicts for merge of 2da9338c to master

Change-Id: I0a5d667b578e23c064ebe7bacc898125fbf40cc2
parents c5d32299 0acb0d7a
Loading
Loading
Loading
Loading
+9 −9
Original line number Diff line number Diff line
@@ -6758,10 +6758,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
            if (mInputContentType != null) {
                mInputContentType.enterDown = false;
            }
            hideInsertionPointCursorController();
            if (mSelectionModifierCursorController != null) {
                mSelectionModifierCursorController.hide();
            }
            hideControllers();
        }

        startStopMarquee(hasWindowFocus);
@@ -6771,10 +6768,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
    protected void onVisibilityChanged(View changedView, int visibility) {
        super.onVisibilityChanged(changedView, visibility);
        if (visibility != VISIBLE) {
            hideInsertionPointCursorController();
            if (mSelectionModifierCursorController != null) {
                mSelectionModifierCursorController.hide();
            }
            hideControllers();
        }
    }

@@ -8358,9 +8352,15 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
        }
    }

    private void hideSelectionModifierCursorController() {
        if (mSelectionModifierCursorController != null) {
            mSelectionModifierCursorController.hide();
        }
    }
    
    private void hideControllers() {
        hideInsertionPointCursorController();
        stopSelectionActionMode();
        hideSelectionModifierCursorController();
    }

    private int getOffsetForHorizontal(int line, int x) {