OSDN Git Service

Add support for GESTURE_FILTERS to Contacts. By default ListView was choosing GESTURE...
authorRomain Guy <romainguy@android.com>
Fri, 22 May 2009 09:24:24 +0000 (02:24 -0700)
committerRomain Guy <romainguy@android.com>
Fri, 22 May 2009 09:24:24 +0000 (02:24 -0700)
src/com/android/contacts/ContactsListActivity.java

index 271a6b3..041d61d 100644 (file)
@@ -479,7 +479,10 @@ public final class ContactsListActivity extends ListActivity
         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