Merge "QS: Fix accidental a11y tile removal" into nyc-mr1-dev

This commit is contained in:
TreeHugger Robot
2016-08-05 15:49:10 +00:00
committed by Android (Google) Code Review

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