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

Commit 1763d6f9 authored by Mathias Agopian's avatar Mathias Agopian Committed by Android (Google) Code Review
Browse files

Merge "always trigger a re-draw when updating the transparent region hint" into jb-mr2-dev

parents 02087754 54e3d384
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -1727,7 +1727,7 @@ public final class ViewRootImpl implements ViewParent,
        if (didLayout) {
            performLayout(lp, desiredWindowWidth, desiredWindowHeight);

            // By this point all views have been sized and positionned
            // By this point all views have been sized and positioned
            // We can compute the transparent area

            if ((host.mPrivateFlags & View.PFLAG_REQUEST_TRANSPARENT_REGIONS) != 0) {
@@ -1745,6 +1745,7 @@ public final class ViewRootImpl implements ViewParent,

                if (!mTransparentRegion.equals(mPreviousTransparentRegion)) {
                    mPreviousTransparentRegion.set(mTransparentRegion);
                    mFullRedrawNeeded = true;
                    // reconfigure window manager
                    try {
                        mWindowSession.setTransparentRegion(mWindow, mTransparentRegion);
@@ -4922,7 +4923,7 @@ public final class ViewRootImpl implements ViewParent,
    public void handleDispatchDoneAnimating() {
        if (mWindowsAnimating) {
            mWindowsAnimating = false;
            if (!mDirty.isEmpty() || mIsAnimating)  {
            if (!mDirty.isEmpty() || mIsAnimating || mFullRedrawNeeded)  {
                scheduleTraversals();
            }
        }