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

Commit 9911d18f authored by Chet Haase's avatar Chet Haase
Browse files

Fix for previous commit on non-interesecting invalidations

An error in the logic meant that some valid invalidations weren't getting through,
causing Launcher (for one) to get stuck sometimes.

Change-Id: I180622623b19770cd61034a5bd7991a5e2fd0a64
parent 1720e073
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -888,9 +888,10 @@ public final class ViewRootImpl implements ViewParent,
        // updates that lie outside of the visible region
        final float appScale = mAttachInfo.mApplicationScale;
        if (localDirty.intersect(0, 0,
                (int) (mWidth * appScale + 0.5f), (int) (mHeight * appScale + 0.5f)) &&
                !mWillDrawSoon) {
                (int) (mWidth * appScale + 0.5f), (int) (mHeight * appScale + 0.5f))) {
            if (!mWillDrawSoon) {
                scheduleTraversals();
            }
        } else {
            localDirty.setEmpty();
        }