summaryrefslogtreecommitdiff
path: root/libs/androidfw/FileStream.cpp
diff options
context:
space:
mode:
author Fabián Kozynski <kozynski@google.com> 2024-06-21 12:06:39 -0400
committer Fabián Kozynski <kozynski@google.com> 2024-06-25 10:04:12 -0400
commit9c4b182c074eee65d1a0872d2ad82746cf165569 (patch)
tree65a09ac32c6072019be162d36abe2860c701b1ea /libs/androidfw/FileStream.cpp
parent34053329d8a90aa8786338bc428fe3d9137dbf7e (diff)
[Flexiglass] Fix 1px rounding error
In some cases, in split shade in flexiglass, due to rounding errors, the leftmost 1px of tiles in the second page can be seen peeking from under the notifications scrim. This is due to the fact that rounding errors accumulate when calculating the page margins for the PagedTileLayout. With this change, when in flexiglass and if the page margin is expected to be half of the total margin, but the total margin is odd, instead of having 0.5px missing on each side, we round down in one side and up in the other. Test: manual Fixes: 339863138 Flag: com.android.systemui.scene_container Change-Id: I1bcf9b730c9e70056bc3022558bf1045b30d3a60
Diffstat (limited to 'libs/androidfw/FileStream.cpp')
0 files changed, 0 insertions, 0 deletions