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

Commit ea8b77ae authored by Raph Levien's avatar Raph Levien Committed by Android Git Automerger
Browse files

am e048f84a: Fix for jank when fast-scrolling DeskClock\'s world cities list in RTL

* commit 'e048f84a':
  Fix for jank when fast-scrolling DeskClock's world cities list in RTL
parents 182637f6 e048f84a
Loading
Loading
Loading
Loading
+3 −5
Original line number Original line Diff line number Diff line
@@ -4683,8 +4683,6 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
            assumeLayout();
            assumeLayout();
        }
        }


        boolean changed = false;

        if (mMovement != null) {
        if (mMovement != null) {
            /* This code also provides auto-scrolling when a cursor is moved using a
            /* This code also provides auto-scrolling when a cursor is moved using a
             * CursorController (insertion point or selection limits).
             * CursorController (insertion point or selection limits).
@@ -4707,10 +4705,10 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
            }
            }


            if (curs >= 0) {
            if (curs >= 0) {
                changed = bringPointIntoView(curs);
                bringPointIntoView(curs);
            }
            }
        } else {
        } else {
            changed = bringTextIntoView();
            bringTextIntoView();
        }
        }


        // This has to be checked here since:
        // This has to be checked here since:
@@ -4731,7 +4729,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
        getViewTreeObserver().removeOnPreDrawListener(this);
        getViewTreeObserver().removeOnPreDrawListener(this);
        mPreDrawRegistered = false;
        mPreDrawRegistered = false;


        return !changed;
        return true;
    }
    }


    @Override
    @Override