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

Commit 195f46f5 authored by Riddle Hsu's avatar Riddle Hsu
Browse files

Always allow to trigger config change if decor insets change

This is restoring to previous behavior.

The timing to send config change when booting may slightly affect
the gpu memory usage of SystemUI. E.g. guess the usage may be a
bit less if the config change arrives before it has drawn.

And DisplayContent#sendNewConfiguration() has already checked
isReady(), so it is fine to let caller invoke directly.

Bug: 245170265
Test: android.platform.test.scenario.sleep.Idle
Change-Id: I7954925775e98171563ccad16b6999c17ece173c
parent 96fd9fad
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -2184,9 +2184,7 @@ public class DisplayPolicy {
        }
        mDecorInsets.invalidate();
        mDecorInsets.mInfoForRotation[rotation].set(newInfo);
        // If the device is booting, let the boot procedure trigger the new configuration.
        // Otherwise the display configuration needs to be recomputed now.
        return mService.mDisplayEnabled;
        return true;
    }

    DecorInsets.Info getDecorInsetsInfo(int rotation, int w, int h) {