Matthew DeVore eeec7d0d66 Run body of applyTopology for all non-noop drags
In onBlockTouchUp, if DisplayTopology.rearrange happened to revert the
change made by the drag so that it matched the before-drag layout, the
blocks would not be moved, so the block would be in the dragged position
but not the normalized position.

This will happen when rearrange has a bug or is otherwise optimizing the
layout, which is dependent on the implementation of rearrange.

The test field mTimesReceivedSameTopology has been replaced with one
that represents an observable positive operation:
mTimesRefreshedBlocks, the validation of which has been added to some
existing tests.

Flag: com.android.settings.flags.display_topology_pane_in_display_list
Test: move display so that rearrange reverts the change, then exit and re-enter the external display fragment, and verify it matches the state when left
Test: DisplayTopologyPreferenceTest
Bug: b/394361999
Bug: b/394355269
Change-Id: Ic3028747d283db77f144831352b7687fe2706391
2025-02-07 12:58:06 -06:00
2022-04-14 09:55:36 +00:00
2024-07-30 11:34:24 +08:00
2023-09-28 10:40:22 -07:00
2024-11-28 09:15:16 +00:00
2024-11-22 12:59:43 +00:00
Description
No description provided
3.1 GiB
Languages
Java 89.8%
Kotlin 10.2%