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

Commit 96d970c9 authored by Winson Chung's avatar Winson Chung
Browse files

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

Change-Id: I2ea089e9d41deb2ac2a266694ac65d58830856f5
parent 399f6205
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);