commit | c896963063ce86d272c08430e739bdf0c8f50bf9 | [log] [tgz] |
---|---|---|
author | Jason Monk <jmonk@google.com> | Fri Aug 05 10:08:11 2016 -0400 |
committer | Jason Monk <jmonk@google.com> | Fri Aug 05 10:08:11 2016 -0400 |
tree | 0a05e5c2c35ab17e37868beb4f28ac1860eb049e | |
parent | b11cc6cbd370a991eea4d9fecaa1f0eee5f9002f [diff] |
QS: Fix accidental a11y tile removal Change-Id: I5b5c3bac0b92a7cc5585dcd55571fa055da0e5eb Fixes: 30443933
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 3a693cf..8d7f6ee 100644 --- a/packages/SystemUI/src/com/android/systemui/qs/customize/TileAdapter.java +++ b/packages/SystemUI/src/com/android/systemui/qs/customize/TileAdapter.java
@@ -297,6 +297,9 @@ 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(); }