Loading services/core/java/com/android/server/wm/DisplayPolicy.java +6 −2 Original line number Diff line number Diff line Loading @@ -1810,10 +1810,14 @@ public class DisplayPolicy { /** * Called when the resource overlays change. */ public void onOverlayChangedLw() { void onOverlayChanged() { updateCurrentUserResources(); // Update the latest display size, cutout. mDisplayContent.updateDisplayInfo(); // The height of status bar needs to update in case display cutout is changed. onConfigurationChanged(); mSystemGestures.onConfigurationChanged(); // The height of status bar can affect screen size configuration. mDisplayContent.reconfigureDisplayLocked(); } /** Loading services/core/java/com/android/server/wm/WindowManagerService.java +11 −7 Original line number Diff line number Diff line Loading @@ -6966,14 +6966,18 @@ public class WindowManagerService extends IWindowManager.Stub } public void onOverlayChanged() { // Post to display thread so it can get the latest display info. mH.post(() -> { synchronized (mGlobalLock) { mRoot.forAllDisplays(displayContent -> { displayContent.getDisplayPolicy().onOverlayChangedLw(); displayContent.updateDisplayInfo(); }); requestTraversal(); mAtmService.deferWindowLayout(); try { mRoot.forAllDisplays(dc -> dc.getDisplayPolicy().onOverlayChanged()); } finally { mAtmService.continueWindowLayout(); } } }); } @Override public Object getWindowManagerLock() { Loading Loading
services/core/java/com/android/server/wm/DisplayPolicy.java +6 −2 Original line number Diff line number Diff line Loading @@ -1810,10 +1810,14 @@ public class DisplayPolicy { /** * Called when the resource overlays change. */ public void onOverlayChangedLw() { void onOverlayChanged() { updateCurrentUserResources(); // Update the latest display size, cutout. mDisplayContent.updateDisplayInfo(); // The height of status bar needs to update in case display cutout is changed. onConfigurationChanged(); mSystemGestures.onConfigurationChanged(); // The height of status bar can affect screen size configuration. mDisplayContent.reconfigureDisplayLocked(); } /** Loading
services/core/java/com/android/server/wm/WindowManagerService.java +11 −7 Original line number Diff line number Diff line Loading @@ -6966,14 +6966,18 @@ public class WindowManagerService extends IWindowManager.Stub } public void onOverlayChanged() { // Post to display thread so it can get the latest display info. mH.post(() -> { synchronized (mGlobalLock) { mRoot.forAllDisplays(displayContent -> { displayContent.getDisplayPolicy().onOverlayChangedLw(); displayContent.updateDisplayInfo(); }); requestTraversal(); mAtmService.deferWindowLayout(); try { mRoot.forAllDisplays(dc -> dc.getDisplayPolicy().onOverlayChanged()); } finally { mAtmService.continueWindowLayout(); } } }); } @Override public Object getWindowManagerLock() { Loading