diff options
author | Jeff Brown <jeffbrown@google.com> | 2011-07-14 22:19:19 -0700 |
---|---|---|
committer | Jeff Brown <jeffbrown@google.com> | 2011-07-14 22:19:19 -0700 |
commit | 1e20946aa34372de5585e2a8ce3b73906a2d828b (patch) | |
tree | c86e304e7bcd8430c8dcb094e3c800a82b24d955 /core/java/android/widget | |
parent | a6111377e1edbc5d63fc2a7205d58b2d9c21d978 (diff) | |
download | frameworks_base-1e20946aa34372de5585e2a8ce3b73906a2d828b.zip frameworks_base-1e20946aa34372de5585e2a8ce3b73906a2d828b.tar.gz frameworks_base-1e20946aa34372de5585e2a8ce3b73906a2d828b.tar.bz2 |
Ensure selector state is updated when touch mode changes.
This fixes a problem where the focus selection rectangle
often remains visible even after entering touch mode.
This problem is particularly noticeable when using the
mouse to scroll the list while an item is selected.
Change-Id: I9938d2586725d91fd3f6738408233f2ead167319
Diffstat (limited to 'core/java/android/widget')
-rw-r--r-- | core/java/android/widget/AbsListView.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/java/android/widget/AbsListView.java b/core/java/android/widget/AbsListView.java index 2423cd1..8f8c1d0 100644 --- a/core/java/android/widget/AbsListView.java +++ b/core/java/android/widget/AbsListView.java @@ -2762,6 +2762,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te // touch mode). Force an initial layout to get rid of the selection. layoutChildren(); } + updateSelectorState(); } else { int touchMode = mTouchMode; if (touchMode == TOUCH_MODE_OVERSCROLL || touchMode == TOUCH_MODE_OVERFLING) { |