Skip updating DisplayFrames when everything is the same

Bug: 161810301
Bug: 175861127
Fix: 230727795
Test: presubmit
Change-Id: I4b1d5115512066037bbb1f0e1c1bbca3af5903d3
This commit is contained in:
Tiger Huang
2022-04-28 21:38:03 +08:00
parent da9b7dcacc
commit f7e1f4912e

View File

@@ -83,7 +83,7 @@ public class DisplayFrames {
final Rect safe = mDisplayCutoutSafe;
final DisplayCutout cutout = displayCutout.getDisplayCutout();
if (mDisplayWidth == info.logicalWidth && mDisplayHeight == info.logicalHeight
&& mRotation != info.rotation
&& mRotation == info.rotation
&& state.getDisplayCutout().equals(cutout)
&& state.getRoundedCorners().equals(roundedCorners)
&& state.getPrivacyIndicatorBounds().equals(indicatorBounds)) {