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

Skip to content
Commit 54b0647d authored by Olivier St-Onge's avatar Olivier St-Onge
Browse files

Simplify the drag logic for edit mode.

The main changes here are:
- Use a single drag listener for the grid instead of one per tile. This simplifies the code and makes it easier to detect if the user is aiming at the left or right side of a tile
- Remove the tile list from the drag state and instead have the list listen to drag events
- Add spacers to empty spaces of the row to enable users to move a tile in that spot

Bug: 346991759
Flag: com.android.systemui.qs_ui_refactor
Test: DragAndDropStateTest
Test: EditTileListStateTest
Test: DragAndDropTest

Change-Id: I49cfdfe0f3c9a3513a4939867558be16d9ba9454
parent 484792a1
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