commit | deffe65428a104103fc4a29f171f0d044dad8c1a | [log] [tgz] |
---|---|---|
author | Jason Monk <jmonk@google.com> | Fri Aug 05 16:10:12 2016 +0000 |
committer | android-build-merger <android-build-merger@google.com> | Fri Aug 05 16:10:12 2016 +0000 |
tree | eeb97be35e4ac788f2da5059b18b91d81b3a1d04 | |
parent | fe32dd400afff3cdfbc2e401ba14f23714b88f3c [diff] | |
parent | 43839f1ff426276a9ae6f7586161aee32009040c [diff] |
QS: Fix accidental a11y tile removal am: c896963063 am: 7d4d9bc351 am: 43839f1ff4 Change-Id: Id6d43a63edf24df22d071f2b6e51029592c282c2
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(); }