commit | abaa42bd44af7e0c00bc952e3df0043c861da939 | [log] [tgz] |
---|---|---|
author | shawnlin <shawnlin@google.com> | Thu May 05 19:54:13 2022 +0800 |
committer | Shawn Lin <shawnlin@google.com> | Thu May 05 12:13:29 2022 +0000 |
tree | fcadeba35f29ff21caaea8ee11a8e0eb8f0f80cb | |
parent | 100004b0ca9ba19de39987bb36eabd1caf236f0a [diff] |
Don't create unexpected display cutout or rounded corners Should not load cutout and rounded corner when the mInitialDisplayCutout and mInitialRoundedCorner are null when setForcedSize() is called. Otherwise, it will accidentally create the cutout/rounded corners of the default display on other display. Bug: 230500488 Test: atest DisplaySizeTest#testSizeRangesAfterSettingDisplaySize Change-Id: Ied2ad194cf2a22e4ac3fe2eb9d6d474e3c9b7578