diff --git a/packages/SystemUI/src/com/android/systemui/qs/customize/TileAdapter.java b/packages/SystemUI/src/com/android/systemui/qs/customize/TileAdapter.java index 3a693cff7cc94..8d7f6ee728507 100644 --- a/packages/SystemUI/src/com/android/systemui/qs/customize/TileAdapter.java +++ b/packages/SystemUI/src/com/android/systemui/qs/customize/TileAdapter.java @@ -297,6 +297,9 @@ public class TileAdapter extends RecyclerView.Adapter implements TileSta mAccessibilityMoving = false; mTiles.remove(mEditIndex--); notifyItemRemoved(mEditIndex - 1); + // Don't remove items when the last position is selected. + if (position == mEditIndex) position--; + move(mAccessibilityFromIndex, position, v); notifyDataSetChanged(); }