summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Jason Monk <jmonk@google.com> 2016-04-20 15:14:50 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2016-04-20 15:14:52 +0000
commit01dbf41311ad24e8c6bcdddfd6720a12d6b30a74 (patch)
tree8857f06bdfb69a9e101d27b3dff1599c3e719800
parenta1a1aa3c682215f0ac7251c43f77985b9aced2a2 (diff)
parent56650305003730303391aff249d930c554392049 (diff)
Merge "Fix QS edit accessibility" into nyc-dev
-rw-r--r--packages/SystemUI/src/com/android/systemui/qs/customize/TileAdapter.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/qs/customize/TileAdapter.java b/packages/SystemUI/src/com/android/systemui/qs/customize/TileAdapter.java
index faa5283137bd..41b49d824a99 100644
--- a/packages/SystemUI/src/com/android/systemui/qs/customize/TileAdapter.java
+++ b/packages/SystemUI/src/com/android/systemui/qs/customize/TileAdapter.java
@@ -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;
}