QS: Fix accidental a11y tile removal

am: c896963063

Change-Id: I88ea3781c02b9ca9e1148b49790d7674e5ad2db4
This commit is contained in:
Jason Monk
2016-08-05 15:57:04 +00:00
committed by android-build-merger

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();
}