summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author ELIYAZ MOMIN (xWF) <mohammedeliyaz@google.com> 2025-01-10 07:42:29 -0800
committer Android (Google) Code Review <android-gerrit@google.com> 2025-01-10 07:42:29 -0800
commit0a41f5c04beed77c6dce1e8ebfd7fe1c0ce54cf6 (patch)
tree9139225c6a086114baf687a6dedd640c158bc976
parent7a4ab528fd8544143d4d2f0c130cee07c60d0083 (diff)
Revert "Check if toRotation != ROTATION_UNDEFINED before calling DisplayLayout.rotateTo"
This reverts commit 7a4ab528fd8544143d4d2f0c130cee07c60d0083. Reason for revert: <Potential culprit for b/389061737 - verifying through ABTD before revert submission. This is part of the standard investigation process, and does not mean your CL will be reverted> Change-Id: Ic3c76c3c17964de6fa1a7bc3f9a9143c41a3152d
-rw-r--r--libs/WindowManager/Shell/src/com/android/wm/shell/appzoomout/AppZoomOutController.java6
1 files changed, 1 insertions, 5 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 82ef00e46e8c..8cd7b0f48003 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,7 +16,6 @@
package com.android.wm.shell.appzoomout;
-import static android.app.WindowConfiguration.ROTATION_UNDEFINED;
import static android.view.Display.DEFAULT_DISPLAY;
import android.app.ActivityManager;
@@ -101,7 +100,6 @@ public class AppZoomOutController implements RemoteCallable<AppZoomOutController
mDisplayController.addDisplayWindowListener(mDisplaysChangedListener);
mDisplayController.addDisplayChangingController(this);
- updateDisplayLayout(mContext.getDisplayId());
mDisplayAreaOrganizer.registerOrganizer();
}
@@ -137,9 +135,7 @@ 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.
- if (toRotation != ROTATION_UNDEFINED) {
- mDisplayAreaOrganizer.onRotateDisplay(mContext, toRotation);
- }
+ mDisplayAreaOrganizer.onRotateDisplay(mContext, toRotation);
}
@Override