QS: Fix accidental a11y tile removal

Change-Id: I5b5c3bac0b92a7cc5585dcd55571fa055da0e5eb
Fixes: 30443933
This commit is contained in:
Jason Monk
2016-08-05 10:08:11 -04:00
parent b11cc6cbd3
commit c896963063

View File

@@ -297,6 +297,9 @@ public class TileAdapter extends RecyclerView.Adapter<Holder> 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();
}