Merge "Fix QS edit accessibility" into nyc-dev
am: 01dbf41
* commit '01dbf41311ad24e8c6bcdddfd6720a12d6b30a74':
Fix QS edit accessibility
Change-Id: Ic5beb92ee07c826c6cab66d099e9765a2f6cfcdd
This commit is contained in:
@@ -279,6 +279,7 @@ public class TileAdapter extends RecyclerView.Adapter<Holder> implements TileSta
|
||||
|
||||
private void selectPosition(int position, View v) {
|
||||
// Remove the placeholder.
|
||||
notifyItemRemoved(mEditIndex);
|
||||
mTiles.remove(mEditIndex--);
|
||||
mAccessibilityMoving = false;
|
||||
move(mAccessibilityFromIndex, position, v);
|
||||
@@ -323,7 +324,7 @@ public class TileAdapter extends RecyclerView.Adapter<Holder> implements TileSta
|
||||
}
|
||||
|
||||
private boolean move(int from, int to, View v) {
|
||||
if (to >= mEditIndex) {
|
||||
if (to > mEditIndex) {
|
||||
if (from >= mEditIndex) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user