Loading services/core/java/com/android/server/wm/RootWindowContainer.java +11 −2 Original line number Diff line number Diff line Loading @@ -193,8 +193,8 @@ class RootWindowContainer extends WindowContainer<DisplayContent> } DisplayContent getTopFocusedDisplayContent() { return getDisplayContent(mTopFocusedDisplayId == INVALID_DISPLAY ? DEFAULT_DISPLAY : mTopFocusedDisplayId); final DisplayContent dc = getDisplayContent(mTopFocusedDisplayId); return dc != null ? dc : getDisplayContent(DEFAULT_DISPLAY); } @Override Loading Loading @@ -1045,6 +1045,15 @@ class RootWindowContainer extends WindowContainer<DisplayContent> mWmService.scheduleAnimationLocked(); } @Override protected void removeChild(DisplayContent dc) { super.removeChild(dc); if (mTopFocusedDisplayId == dc.getDisplayId()) { mWmService.updateFocusedWindowLocked( UPDATE_FOCUS_NORMAL, true /* updateInputWindows */); } } /** * For all display at or below this call the callback. * Loading Loading
services/core/java/com/android/server/wm/RootWindowContainer.java +11 −2 Original line number Diff line number Diff line Loading @@ -193,8 +193,8 @@ class RootWindowContainer extends WindowContainer<DisplayContent> } DisplayContent getTopFocusedDisplayContent() { return getDisplayContent(mTopFocusedDisplayId == INVALID_DISPLAY ? DEFAULT_DISPLAY : mTopFocusedDisplayId); final DisplayContent dc = getDisplayContent(mTopFocusedDisplayId); return dc != null ? dc : getDisplayContent(DEFAULT_DISPLAY); } @Override Loading Loading @@ -1045,6 +1045,15 @@ class RootWindowContainer extends WindowContainer<DisplayContent> mWmService.scheduleAnimationLocked(); } @Override protected void removeChild(DisplayContent dc) { super.removeChild(dc); if (mTopFocusedDisplayId == dc.getDisplayId()) { mWmService.updateFocusedWindowLocked( UPDATE_FOCUS_NORMAL, true /* updateInputWindows */); } } /** * For all display at or below this call the callback. * Loading