Don't show magnifier with animation for the new fisheye magnifier.

The new fisheye magnifier is showed inline on the text.
It doens't make sense to have an animation when switching lines
vertically.

Test: locally verfiied.
Bug: 149058653
Change-Id: I36b6894f6954a8adf5a3097ebb7a5c5def292d07
This commit is contained in:
Shu Chen
2020-02-07 11:17:29 +08:00
parent c66f4316d6
commit 59bccf2a70

View File

@@ -5111,8 +5111,10 @@ public class Editor {
int lineRight = (int) layout.getLineRight(line);
lineRight += mTextView.getTotalPaddingLeft() - mTextView.getScrollX();
mMagnifierAnimator.mMagnifier.setSourceHorizontalBounds(lineLeft, lineRight);
mMagnifierAnimator.mMagnifier.show(showPosInView.x, showPosInView.y);
} else {
mMagnifierAnimator.show(showPosInView.x, showPosInView.y);
}
mMagnifierAnimator.show(showPosInView.x, showPosInView.y);
updateHandlesVisibility();
} else {
dismissMagnifier();