Fix OHM DA Organizer do not update display bounds by orientation
Legacy code depend on getDisplayBounds() which obtain bounds from current WindowMetrics, unfortunately, WindowMetrics's info is not up-to-date due to DisplayChangeController.onRotateDisplay() callback earlier than WindowMetrics get update. When onRotateDisplay() callback, we rotate old display bounds by the rotation policy manually. Test: atest WMShellUnitTests Bug: 182342712 Change-Id: I9ff91dd7e51417ee33d57327ca07203de52dbe33
Loading
Please register or sign in to comment