diff options
-rwxr-xr-x | src/com/android/contacts/common/list/ContactListAdapter.java | 2 | ||||
-rwxr-xr-x | src/com/android/contacts/common/list/ContactListItemView.java | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/com/android/contacts/common/list/ContactListAdapter.java b/src/com/android/contacts/common/list/ContactListAdapter.java index a3eb8cbe..b987e4d8 100755 --- a/src/com/android/contacts/common/list/ContactListAdapter.java +++ b/src/com/android/contacts/common/list/ContactListAdapter.java @@ -308,7 +308,7 @@ public abstract class ContactListAdapter extends ContactEntryListAdapter { protected void bindQuickCallView(final ContactListItemView view, Cursor cursor) { view.showQuickCallView(cursor, ContactQuery.CONTACT_HAS_NUMBER, - ContactQuery.CONTACT_LOOKUP_KEY); + ContactQuery.CONTACT_LOOKUP_KEY, ContactQuery.CONTACT_IS_USER_PROFILE); view.setOnQuickCallClickListener(mClickListener); } diff --git a/src/com/android/contacts/common/list/ContactListItemView.java b/src/com/android/contacts/common/list/ContactListItemView.java index 5f57376e..e6369977 100755 --- a/src/com/android/contacts/common/list/ContactListItemView.java +++ b/src/com/android/contacts/common/list/ContactListItemView.java @@ -1261,9 +1261,11 @@ public class ContactListItemView extends ViewGroup } } - public void showQuickCallView(Cursor cursor, int numberColumIndex, int lookUpKey) { + public void showQuickCallView(Cursor cursor, int numberColumIndex, int lookUpKey, + int profileKey) { int hasNumber = cursor.getInt(numberColumIndex); - if (!(hasNumber == 0)) { + boolean isProfile = cursor.getInt(profileKey) == 1; + if (!(hasNumber == 0) && !isProfile) { getQuickCallView().setVisibility(View.VISIBLE); setQuickCallLookup(cursor.getString(lookUpKey)); } else { |