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 ceb40540d25b0..8fd6b607ddddc 100644 --- a/packages/SystemUI/src/com/android/systemui/qs/customize/TileAdapter.java +++ b/packages/SystemUI/src/com/android/systemui/qs/customize/TileAdapter.java @@ -285,10 +285,11 @@ public class TileAdapter extends RecyclerView.Adapter implements TileSta private void selectPosition(int position, View v) { // Remove the placeholder. - notifyItemRemoved(mEditIndex); - mTiles.remove(mEditIndex--); mAccessibilityMoving = false; move(mAccessibilityFromIndex, position, v); + mTiles.remove(mEditIndex); + notifyItemRemoved(mEditIndex - 1); + updateDividerLocations(); saveSpecs(mHost); } @@ -321,7 +322,7 @@ public class TileAdapter extends RecyclerView.Adapter implements TileSta mAccessibilityFromIndex = position; // Add placeholder for last slot. mTiles.add(mEditIndex++, null); - notifyItemInserted(mEditIndex - 1); + notifyDataSetChanged(); } public SpanSizeLookup getSizeLookup() {