Skip to content

Commit de7ff08

Browse files
Craig MautnerAndroid (Google) Code Review
authored andcommitted
Merge "Call deferred windowFocusChange when draw complete" into jb-dev
2 parents 80f84a1 + 51bb12b commit de7ff08

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

services/java/com/android/server/wm/WindowManagerService.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8324,10 +8324,6 @@ private final void performLayoutAndPlaceSurfacesLockedInner(
83248324
for (i=N-1; i>=0; i--) {
83258325
WindowState w = mWindows.get(i);
83268326

8327-
if (someoneLosingFocus && w == mCurrentFocus && w.isDisplayedLw()) {
8328-
focusDisplayed = true;
8329-
}
8330-
83318327
final boolean obscuredChanged = w.mObscured != mInnerFields.mObscured;
83328328

83338329
// Update effect.
@@ -8385,6 +8381,10 @@ private final void performLayoutAndPlaceSurfacesLockedInner(
83858381
winAnimator.setSurfaceBoundaries(recoveringMemory);
83868382
}
83878383

8384+
if (someoneLosingFocus && w == mCurrentFocus && w.isDisplayedLw()) {
8385+
focusDisplayed = true;
8386+
}
8387+
83888388
updateResizingWindows(w);
83898389
}
83908390

0 commit comments

Comments
 (0)