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

Commit 51bb12b3 authored by Craig Mautner's avatar Craig Mautner
Browse files

Call deferred windowFocusChange when draw complete

Move the test for deferred window change notification after the drawing
update. Previously there was never a second check after the drawing
completed so we never sent the notification to the departing window.

Fixes bug 6335849.

Change-Id: I8a7eafdb184567a47ae04f1e597bae4cccf6cf62
parent 002f5377
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -8315,10 +8315,6 @@ public class WindowManagerService extends IWindowManager.Stub
            for (i=N-1; i>=0; i--) {
                WindowState w = mWindows.get(i);

                if (someoneLosingFocus && w == mCurrentFocus && w.isDisplayedLw()) {
                    focusDisplayed = true;
                }

                final boolean obscuredChanged = w.mObscured != mInnerFields.mObscured;

                // Update effect.
@@ -8376,6 +8372,10 @@ public class WindowManagerService extends IWindowManager.Stub
                    winAnimator.setSurfaceBoundaries(recoveringMemory);
                }

                if (someoneLosingFocus && w == mCurrentFocus && w.isDisplayedLw()) {
                    focusDisplayed = true;
                }

                updateResizingWindows(w);
            }