am c7cdf607: Add support for GESTURE_FILTERS to Contacts. By default ListView was choosing GESTURE_JUMP because the application enables text filtering dynamically.
Merge commit 'c7cdf60769f1d448dcd016cc1ae93d3fc2975238'
* commit 'c7cdf60769f1d448dcd016cc1ae93d3fc2975238':
Add support for GESTURE_FILTERS to Contacts. By default ListView was choosing GESTURE_JUMP because the application enables text filtering dynamically.
diff --git a/src/com/android/contacts/ContactsListActivity.java b/src/com/android/contacts/ContactsListActivity.java
index 833e776..d97c27d 100644
--- a/src/com/android/contacts/ContactsListActivity.java
+++ b/src/com/android/contacts/ContactsListActivity.java
@@ -479,7 +479,10 @@
list.setOnCreateContextMenuListener(this);
if ((mMode & MODE_MASK_NO_FILTER) != MODE_MASK_NO_FILTER) {
list.setTextFilterEnabled(true);
- }
+ list.setGestures(ListView.GESTURES_FILTER);
+ } else {
+ list.setGestures(ListView.GESTURES_NONE);
+ }
if ((mMode & MODE_MASK_CREATE_NEW) != 0) {
// Add the header for creating a new contact