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
Loading
Please register or sign in to comment