Loading services/core/java/com/android/server/wm/DisplayPolicy.java +33 −11 Original line number Diff line number Diff line Loading @@ -1875,6 +1875,27 @@ public class DisplayPolicy { } void notifyDisplayAddSystemDecorations() { if (enableDisplayContentModeManagement()) { final int displayId = getDisplayId(); final boolean isSystemDecorationsSupported = mDisplayContent.isSystemDecorationsSupported(); final boolean isHomeSupported = mDisplayContent.isHomeSupported(); mHandler.post(() -> { if (isSystemDecorationsSupported) { StatusBarManagerInternal statusBar = getStatusBarManagerInternal(); if (statusBar != null) { statusBar.onDisplayAddSystemDecorations(displayId); } } if (isHomeSupported) { final WallpaperManagerInternal wpMgr = LocalServices.getService(WallpaperManagerInternal.class); if (wpMgr != null) { wpMgr.onDisplayAddSystemDecorations(displayId); } } }); } else { mHandler.post(() -> { final int displayId = getDisplayId(); StatusBarManagerInternal statusBar = getStatusBarManagerInternal(); Loading @@ -1888,6 +1909,7 @@ public class DisplayPolicy { } }); } } void notifyDisplayRemoveSystemDecorations() { mHandler.post( Loading services/core/java/com/android/server/wm/RootWindowContainer.java +1 −7 Original line number Diff line number Diff line Loading @@ -2794,14 +2794,8 @@ class RootWindowContainer extends WindowContainer<DisplayContent> } startHomeOnDisplay(mCurrentUser, reason, displayContent.getDisplayId()); if (enableDisplayContentModeManagement()) { if (displayContent.isSystemDecorationsSupported()) { displayContent.getDisplayPolicy().notifyDisplayAddSystemDecorations(); } } else { displayContent.getDisplayPolicy().notifyDisplayAddSystemDecorations(); } } @Override public void onDisplayRemoved(int displayId) { Loading Loading
services/core/java/com/android/server/wm/DisplayPolicy.java +33 −11 Original line number Diff line number Diff line Loading @@ -1875,6 +1875,27 @@ public class DisplayPolicy { } void notifyDisplayAddSystemDecorations() { if (enableDisplayContentModeManagement()) { final int displayId = getDisplayId(); final boolean isSystemDecorationsSupported = mDisplayContent.isSystemDecorationsSupported(); final boolean isHomeSupported = mDisplayContent.isHomeSupported(); mHandler.post(() -> { if (isSystemDecorationsSupported) { StatusBarManagerInternal statusBar = getStatusBarManagerInternal(); if (statusBar != null) { statusBar.onDisplayAddSystemDecorations(displayId); } } if (isHomeSupported) { final WallpaperManagerInternal wpMgr = LocalServices.getService(WallpaperManagerInternal.class); if (wpMgr != null) { wpMgr.onDisplayAddSystemDecorations(displayId); } } }); } else { mHandler.post(() -> { final int displayId = getDisplayId(); StatusBarManagerInternal statusBar = getStatusBarManagerInternal(); Loading @@ -1888,6 +1909,7 @@ public class DisplayPolicy { } }); } } void notifyDisplayRemoveSystemDecorations() { mHandler.post( Loading
services/core/java/com/android/server/wm/RootWindowContainer.java +1 −7 Original line number Diff line number Diff line Loading @@ -2794,14 +2794,8 @@ class RootWindowContainer extends WindowContainer<DisplayContent> } startHomeOnDisplay(mCurrentUser, reason, displayContent.getDisplayId()); if (enableDisplayContentModeManagement()) { if (displayContent.isSystemDecorationsSupported()) { displayContent.getDisplayPolicy().notifyDisplayAddSystemDecorations(); } } else { displayContent.getDisplayPolicy().notifyDisplayAddSystemDecorations(); } } @Override public void onDisplayRemoved(int displayId) { Loading