summaryrefslogtreecommitdiff
path: root/libs/androidfw/AssetsProvider.cpp
diff options
context:
space:
mode:
author Matthew DeVore <matvore@google.com> 2024-12-20 21:50:25 +0000
committer Matthew DeVore <matvore@google.com> 2024-12-26 16:50:07 +0000
commit5e3e0bc6a86cc320f16f69776e30d4382871de65 (patch)
tree3b39f811daf4d2452fbdba6b4a8f83674a1ce765 /libs/androidfw/AssetsProvider.cpp
parent16cd9a9e7cb983bcaf08c09a7467c8449f360174 (diff)
DisplayTopology: fix erroneous attach-to-corner
Using x/y deviation to choose which edge to attach to was causing corner attachment too easily when only a small amount of the larger edge was overlapping. Effectively the block would be bumped to the corner even though attaching along the longer edge would have been closer to the requested position. Do not use deviation to choose an attachment edge, but use the overlap values. Update comments accordingly, as well as reword and refactor them. Flag: com.android.settings.flags.display_topology_pane_in_display_list Test: atest DisplayTopologyTest.kt Bug: b/352650922 Change-Id: I38024ab1500020fe195348e96b0c99ec85886e03
Diffstat (limited to 'libs/androidfw/AssetsProvider.cpp')
0 files changed, 0 insertions, 0 deletions