Merge change 21855 into eclair-dev
* changes:
Removing reference to MAX_SUGGESTIONS
diff --git a/src/com/android/contacts/ContactsListActivity.java b/src/com/android/contacts/ContactsListActivity.java
index 4ec6df6..77a87de 100644
--- a/src/com/android/contacts/ContactsListActivity.java
+++ b/src/com/android/contacts/ContactsListActivity.java
@@ -1130,8 +1130,7 @@
Uri suggestionsUri = Contacts.CONTENT_URI.buildUpon()
.appendEncodedPath(String.valueOf(mQueryAggregateId))
.appendEncodedPath(AggregationSuggestions.CONTENT_DIRECTORY)
- .appendQueryParameter(AggregationSuggestions.MAX_SUGGESTIONS,
- String.valueOf(MAX_SUGGESTIONS))
+ .appendQueryParameter("limit", String.valueOf(MAX_SUGGESTIONS))
.build();
mQueryHandler.startQuery(QUERY_TOKEN, null, suggestionsUri, AGGREGATES_PROJECTION,
null, null, null);
@@ -1561,7 +1560,9 @@
cache.dataView = (TextView) view.findViewById(R.id.data);
cache.presenceView = (ImageView) view.findViewById(R.id.presence);
cache.photoView = (ImageView) view.findViewById(R.id.photo);
- cache.photoView.setOnClickListener(ContactsListActivity.this);
+ if (cache.photoView != null) {
+ cache.photoView.setOnClickListener(ContactsListActivity.this);
+ }
view.setTag(cache);
return view;