From ad5db2979b641a80be6dc5e3f51eb4ced2c38daa Mon Sep 17 00:00:00 2001 From: Jason Monk Date: Wed, 25 May 2016 10:54:06 -0400 Subject: [PATCH] QS Edit: Fix up accessibility Change-Id: I13d426d4ae447c7db074bc7165067870bd8cae5d Fixes: 28913622 --- .../src/com/android/systemui/qs/customize/TileAdapter.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 61a92b468b48f..60c24d095aa75 100644 --- a/packages/SystemUI/src/com/android/systemui/qs/customize/TileAdapter.java +++ b/packages/SystemUI/src/com/android/systemui/qs/customize/TileAdapter.java @@ -286,10 +286,11 @@ public class TileAdapter extends RecyclerView.Adapter implements TileSta private void selectPosition(int position, View v) { // Remove the placeholder. mAccessibilityMoving = false; - move(mAccessibilityFromIndex, position, v); - mTiles.remove(mEditIndex); + mTiles.remove(mEditIndex--); notifyItemRemoved(mEditIndex - 1); + move(mAccessibilityFromIndex, position, v); updateDividerLocations(); + notifyDataSetChanged(); saveSpecs(mHost); }