diff options
| author | 2025-01-10 23:00:39 -0800 | |
|---|---|---|
| committer | 2025-01-10 23:00:39 -0800 | |
| commit | e2be8cf7eac354b5582a832b4416df47d9be9e60 (patch) | |
| tree | 0496c61657dc781b194958678325b97a446a1018 | |
| parent | b9df312c454f5e9173898144fd9ff7911c7a6b40 (diff) | |
| parent | 51674b00162553f4e442f6e9396055540da5e46f (diff) | |
Merge "Revert^2 "Check if toRotation != ROTATION_UNDEFINED before calling DisplayLayout.rotateTo"" into main
| -rw-r--r-- | libs/WindowManager/Shell/src/com/android/wm/shell/appzoomout/AppZoomOutController.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libs/WindowManager/Shell/src/com/android/wm/shell/appzoomout/AppZoomOutController.java b/libs/WindowManager/Shell/src/com/android/wm/shell/appzoomout/AppZoomOutController.java index 8cd7b0f48003..82ef00e46e8c 100644 --- a/libs/WindowManager/Shell/src/com/android/wm/shell/appzoomout/AppZoomOutController.java +++ b/libs/WindowManager/Shell/src/com/android/wm/shell/appzoomout/AppZoomOutController.java @@ -16,6 +16,7 @@ package com.android.wm.shell.appzoomout; +import static android.app.WindowConfiguration.ROTATION_UNDEFINED; import static android.view.Display.DEFAULT_DISPLAY; import android.app.ActivityManager; @@ -100,6 +101,7 @@ public class AppZoomOutController implements RemoteCallable<AppZoomOutController mDisplayController.addDisplayWindowListener(mDisplaysChangedListener); mDisplayController.addDisplayChangingController(this); + updateDisplayLayout(mContext.getDisplayId()); mDisplayAreaOrganizer.registerOrganizer(); } @@ -135,7 +137,9 @@ public class AppZoomOutController implements RemoteCallable<AppZoomOutController public void onDisplayChange(int displayId, int fromRotation, int toRotation, @Nullable DisplayAreaInfo newDisplayAreaInfo, WindowContainerTransaction wct) { // TODO: verify if there is synchronization issues. - mDisplayAreaOrganizer.onRotateDisplay(mContext, toRotation); + if (toRotation != ROTATION_UNDEFINED) { + mDisplayAreaOrganizer.onRotateDisplay(mContext, toRotation); + } } @Override |