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

Commit 91a2c5e4 authored by Olivier St-Onge's avatar Olivier St-Onge
Browse files

Regenerate the grid when dragging a tile out of bounds

This removes any leftover spacers once a tile is removed during a drag movement

Test: manually dragging tiles out of the grid
Flag: com.android.systemui.qs_ui_refactor_compose_fragment
Fixes: 379311650
Change-Id: I2e20d4bfda56a234dfc39da6a0a98c0f72ec8f34
parent 8fc9816a
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -135,6 +135,9 @@ class EditTileListState(
            cell is TileGridCell && cell.tile.tileSpec == draggedTile.tile.tileSpec
        }
        draggedPosition = Offset.Unspecified

        // Regenerate spacers without the dragged tile
        regenerateGrid()
    }

    override fun onDrop() {