Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f7e1f491 authored by Tiger Huang's avatar Tiger Huang
Browse files

Skip updating DisplayFrames when everything is the same

Bug: 161810301
Bug: 175861127
Fix: 230727795
Test: presubmit
Change-Id: I4b1d5115512066037bbb1f0e1c1bbca3af5903d3
parent da9b7dca
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)) {