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

Commit 5d552f2c authored by Jorim Jaggi's avatar Jorim Jaggi Committed by Android Git Automerger
Browse files

am 414985c4: Remove window from mWaitingForDrawn when policy hidden

* commit '414985c4':
  Remove window from mWaitingForDrawn when policy hidden
parents c9a110b0 414985c4
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -10409,8 +10409,8 @@ public class WindowManagerService extends IWindowManager.Stub
                    ": removed=" + win.mRemoved + " visible=" + win.isVisibleLw() +
                    " mHasSurface=" + win.mHasSurface +
                    " drawState=" + win.mWinAnimator.mDrawState);
            if (win.mRemoved || !win.mHasSurface) {
                // Window has been removed; no draw will now happen, so stop waiting.
            if (win.mRemoved || !win.mHasSurface || !win.mPolicyVisibility) {
                // Window has been removed or hidden; no draw will now happen, so stop waiting.
                if (DEBUG_SCREEN_ON) Slog.w(TAG, "Aborted waiting for drawn: " + win);
                mWaitingForDrawn.remove(win);
            } else if (win.hasDrawnLw()) {