diff options
author | Danny Lin <danny@kdrag0n.dev> | 2021-08-03 00:00:30 -0700 |
---|---|---|
committer | alk3pInjection <webmaster@raspii.tech> | 2021-09-27 21:17:05 +0800 |
commit | 11c1460942d1b55c8fba3bd9b557bf24f4e8e2a7 (patch) | |
tree | 614eb76bb0bbcda01c0c19dedd82c929258135f2 | |
parent | a656cfe7245c5a7900377c3d1be1a8aa63f65096 (diff) |
[ProtonAOSP][rvc] Editor: Disable magnifier position animation
In my opinion, this animation serves no purpose because it doesn't
correspond to any animations in the text selection/handle flow, and is
barely noticeable in typical text selection cases. In addition, it makes
the magnifier feel slow/laggy when selecting a large block of text
quickly.
Change-Id: I5fed9fc06db4491dc2811815741830001d295030
-rw-r--r-- | core/java/android/widget/Editor.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/widget/Editor.java b/core/java/android/widget/Editor.java index 49d456b5323e..e492f659dfa9 100644 --- a/core/java/android/widget/Editor.java +++ b/core/java/android/widget/Editor.java @@ -4576,7 +4576,7 @@ public class Editor { * animation is added to the jump. */ private void show(final float x, final float y) { - final boolean startNewAnimation = mMagnifierIsShowing && y != mLastY; + final boolean startNewAnimation = false; if (startNewAnimation) { if (mAnimator.isRunning()) { |