Loading packages/SystemUI/src/com/android/systemui/qs/panels/ui/compose/infinitegrid/EditTile.kt +3 −1 Original line number Diff line number Diff line Loading @@ -1032,7 +1032,9 @@ private fun LazyGridItemScope.TileGridCell( // usually happens when resizing a tile multiple times. We can fix this by applying the // draggable modifier after the first frame var isSelectable by remember { mutableStateOf(false) } LaunchedEffect(canLayoutTile) { isSelectable = canLayoutTile } LaunchedEffect(canLayoutTile, dragAndDropState.dragInProgress) { isSelectable = canLayoutTile && !dragAndDropState.dragInProgress } val selectableModifier = Modifier.selectableTile(cell.tile.tileSpec, selectionState) .dragAndDropTileSource( Loading Loading
packages/SystemUI/src/com/android/systemui/qs/panels/ui/compose/infinitegrid/EditTile.kt +3 −1 Original line number Diff line number Diff line Loading @@ -1032,7 +1032,9 @@ private fun LazyGridItemScope.TileGridCell( // usually happens when resizing a tile multiple times. We can fix this by applying the // draggable modifier after the first frame var isSelectable by remember { mutableStateOf(false) } LaunchedEffect(canLayoutTile) { isSelectable = canLayoutTile } LaunchedEffect(canLayoutTile, dragAndDropState.dragInProgress) { isSelectable = canLayoutTile && !dragAndDropState.dragInProgress } val selectableModifier = Modifier.selectableTile(cell.tile.tileSpec, selectionState) .dragAndDropTileSource( Loading