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

Commit 3823af02 authored by Shai Barack's avatar Shai Barack Committed by Android (Google) Code Review
Browse files

Merge "Always postInvalidateOnAnimation from awakenScrollBars" into main

parents d747b2de fd9387db
Loading
Loading
Loading
Loading
+10 −11
Original line number Diff line number Diff line
@@ -21142,6 +21142,11 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
        if (isHorizontalScrollBarEnabled() || isVerticalScrollBarEnabled()) {
            if (invalidate) {
                // Invalidate to show the scrollbars
                postInvalidateOnAnimation();
            }
            if (scrollCache.state == ScrollabilityCache.OFF) {
                // FIXME: this is copied from WindowManagerService.
                // We should get this value from the system when it
@@ -21157,18 +21162,12 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
            scrollCache.state = ScrollabilityCache.ON;
            // Schedule our fader to run if it's not already scheduled
            if (!scrollCache.fadeScrollBarsScheduled) {
                if (invalidate) {
                    // Invalidate to show the scrollbars
                    postInvalidateOnAnimation();
                }
                if (mAttachInfo != null) {
            if (!scrollCache.fadeScrollBarsScheduled && mAttachInfo != null) {
                final Handler handler = mAttachInfo.mHandler;
                scrollCache.handler = handler;
                scrollCache.fadeScrollBarsScheduled = true;
                handler.postAtTime(scrollCache, fadeStartTime);
            }
            }
            return true;
        }