summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Kohen <kohen.d@gmail.com>2010-07-08 23:35:42 +0300
committerDavid Kohen <kohen.d@gmail.com>2010-07-08 23:35:42 +0300
commit746ce29580a46988439c1a5b9f47e29d2fb90c44 (patch)
tree4851f3f7e68ac695825fb1b97c443e7f4ed7892a
parent23ab1aee1eefc480fee28a3acf7edf5c9be610f5 (diff)
downloadpackages_apps_Contacts-746ce29580a46988439c1a5b9f47e29d2fb90c44.tar.gz
packages_apps_Contacts-746ce29580a46988439c1a5b9f47e29d2fb90c44.tar.bz2
packages_apps_Contacts-746ce29580a46988439c1a5b9f47e29d2fb90c44.zip
Fix acore FC when clearing search query
The revert made by on commit Steve 1c779b3fd650bcddaba0359d6f7907abb5428068 had a merge issue with froyo
-rw-r--r--src/com/android/contacts/ContactsListActivity.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/com/android/contacts/ContactsListActivity.java b/src/com/android/contacts/ContactsListActivity.java
index 6254f9c99..a8ad16329 100644
--- a/src/com/android/contacts/ContactsListActivity.java
+++ b/src/com/android/contacts/ContactsListActivity.java
@@ -3546,15 +3546,16 @@ public class ContactsListActivity extends ListActivity implements View.OnCreateC
mIndexer = getNewIndexer(cursor);
}
} else {
- */
+ // This code leads to acore crash when searching a contact and clearing the query quickly.
+ // Things seem to work without it, so I'm reverting to the original method for froyo
if (mIndexer instanceof AlphabetIndexer) {
((AlphabetIndexer)mIndexer).setCursor(cursor);
} else {
mIndexer = getNewIndexer(cursor);
}
- //}
+ }
}
- /*
+ */
Bundle bundle = cursor.getExtras();
if (bundle.containsKey(ContactCounts.EXTRA_ADDRESS_BOOK_INDEX_TITLES)) {
String sections[] =
@@ -3564,7 +3565,7 @@ public class ContactsListActivity extends ListActivity implements View.OnCreateC
} else {
mIndexer = null;
}
- */
+
}
/**