From: Romain Guy <> Date: Wed, 25 Mar 2009 01:28:43 +0000 (-0700) Subject: Automated import from //branches/cupcake/...@141830,141830 X-Git-Tag: android-x86-1.6~7^2~9 X-Git-Url: http://git.osdn.net/view?p=android-x86%2Fpackages-apps-Contacts.git;a=commitdiff_plain;h=bc1d6cb0c60318d2e88a54970f5efd04098d90aa Automated import from //branches/cupcake/...@141830,141830 --- diff --git a/src/com/android/contacts/ContactsListActivity.java b/src/com/android/contacts/ContactsListActivity.java index a13b9d8..0aff2b1 100644 --- a/src/com/android/contacts/ContactsListActivity.java +++ b/src/com/android/contacts/ContactsListActivity.java @@ -656,7 +656,14 @@ public final class ContactsListActivity extends ListActivity super.onRestart(); // The cursor was killed off in onStop(), so we need to get a new one here - startQuery(); + // We do not perform the query if a filter is set on the list because the + // filter will cause the query to happen anyway + if (TextUtils.isEmpty(getListView().getTextFilter())) { + startQuery(); + } else { + // Run the filtered query on the adapter + ((ContactItemListAdapter) getListView().getAdapter()).onContentChanged(); + } } private void updateGroup() {