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

Commit 2e3b8f55 authored by Riddle Hsu's avatar Riddle Hsu
Browse files

Always update config from decor insets change during booting

This is a bit similar to I7954925775e98171563ccad16b6999c17ece173c

Even if there is no changes to screen size configuration, there might
be other pending changes that can affect display configuration.
This is like a workaround to keep original magic result, i.e. the
memory usage could be less if the first CONFIG_SCREEN_LAYOUT happens
before the first CONFIG_ASSETS_PATHS.

Bug: 369818539
Flag: EXEMPT bugfix
Test: privatedirty_bytes_surfaceflinger after booted
Change-Id: Ibe531a9d9ab06b71a0c1947dbce4fd75670dd420
parent 340a1b19
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -2156,6 +2156,11 @@ public class DisplayPolicy {
        }
        mDecorInsets.invalidate();
        mDecorInsets.mInfoForRotation[rotation].set(newInfo);
        if (!mService.mDisplayEnabled) {
            // There could be other pending changes during booting. It might be better to let the
            // clients receive the new states earlier.
            return true;
        }
        return !sameConfigFrame;
    }