Skip updating DisplayFrames when everything is the same
Bug: 161810301 Bug: 175861127 Fix: 230727795 Test: presubmit Change-Id: I4b1d5115512066037bbb1f0e1c1bbca3af5903d3
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user