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

Commit 0bfae106 authored by Winson Chung's avatar Winson Chung Committed by Android (Google) Code Review
Browse files

Merge "Adding workaround for the status bar not reporting the correct system decor rect."

parents 7bcdb33d 96d970c9
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -1165,7 +1165,10 @@ class WindowStateAnimator {
        if (mHasClipRect) {

            // If we have an animated clip rect, intersect it with the system decor rect
            int offsetTop = w.mSystemDecorRect.top;
            // NOTE: We are adding a temporary workaround due to the status bar not always reporting
            // the correct system decor rect.  In such cases, we take into account the specified
            // content insets as well.
            int offsetTop = Math.max(w.mSystemDecorRect.top, w.mContentInsets.top);
            mTmpClipRect.set(w.mSystemDecorRect);
            mTmpClipRect.offset(0, -offsetTop);
            mTmpClipRect.intersect(mClipRect);