OSDN Git Service

QS Edit: Fix up accessibility
authorJason Monk <jmonk@google.com>
Wed, 25 May 2016 14:54:06 +0000 (10:54 -0400)
committerJason Monk <jmonk@google.com>
Wed, 25 May 2016 14:54:43 +0000 (10:54 -0400)
Change-Id: I13d426d4ae447c7db074bc7165067870bd8cae5d
Fixes: 28913622

packages/SystemUI/src/com/android/systemui/qs/customize/TileAdapter.java

index 61a92b4..60c24d0 100644 (file)
@@ -286,10 +286,11 @@ public class TileAdapter extends RecyclerView.Adapter<Holder> 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);
     }