summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Tiger Huang <tigerhuang@google.com> 2022-05-31 20:05:40 +0800
committer Tiger Huang <tigerhuang@google.com> 2022-05-31 13:38:29 +0000
commitea97f83f8fb7997d86a2fc30a5fe970d56dae317 (patch)
tree2b390b481836abaa417e67479431aa1e46f767bf /libs/androidfw/StringPool.cpp
parent2e83cb0c22d9d6832137e61ad1dc4029683b1577 (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