diff options
| author | 2022-05-31 20:05:40 +0800 | |
|---|---|---|
| committer | 2022-05-31 13:38:29 +0000 | |
| commit | ea97f83f8fb7997d86a2fc30a5fe970d56dae317 (patch) | |
| tree | 2b390b481836abaa417e67479431aa1e46f767bf /libs/androidfw/StringPool.cpp | |
| parent | 2e83cb0c22d9d6832137e61ad1dc4029683b1577 (diff) | |
Fix InsetsState#calculateUncontrollableInsetsFromFrame
If a type of insets doesn't provide any insets to a window, the previous
logic would think the type is controllable. This is wrong.
If a type of insets provides the entire inset to a window, the previous
logic would think the type is not controllable when the width or height
doesn't match the display frame. This doesn't make much sense as well.
This CL fixes the issues mentioned above and also refines
WindowInsetsTests. It displays the name (string) of the controllable
types, not the value (number).
Fix: 234426300
Test: WindowInsetsTests
Test: atest InsetsControllerTest
Change-Id: Ice71db61cc4963c6d8489096bec9c295d58bfd78
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions