Merge "Fix a small bug where desktop mode changes might not be applied" into tm-qpr-dev

This commit is contained in:
Mady Mellor
2022-09-07 19:03:22 +00:00
committed by Android (Google) Code Review

View File

@@ -62,6 +62,9 @@ public class DesktopModeController {
private void onInit() {
ProtoLog.d(WM_SHELL_DESKTOP_MODE, "Initialize DesktopModeController");
mSettingsObserver.observe();
if (DesktopMode.isActive(mContext)) {
updateDesktopModeActive(true);
}
}
@VisibleForTesting