summaryrefslogtreecommitdiffstats
path: root/src/com/android/contacts/common/list/ContactListItemView.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/contacts/common/list/ContactListItemView.java')
-rwxr-xr-xsrc/com/android/contacts/common/list/ContactListItemView.java6
1 files changed, 4 insertions, 2 deletions
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 {