Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 5e3e0bc6 authored by Matthew DeVore's avatar Matthew DeVore
Browse files

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
parent 16cd9a9e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment