Merge "Fixed the issue "set default" is not shown" am: 41cecada26 am: 04e39ef2a6 am: e24eb721d6
am: 43a7c51970
Change-Id: I7483701c7f51a9f8a89d2339ca0d05425139bf8b
diff --git a/src/com/android/contacts/quickcontact/QuickContactActivity.java b/src/com/android/contacts/quickcontact/QuickContactActivity.java
index 13167de..c8b2fa0 100644
--- a/src/com/android/contacts/quickcontact/QuickContactActivity.java
+++ b/src/com/android/contacts/quickcontact/QuickContactActivity.java
@@ -1170,6 +1170,8 @@
final List<DataItem> sipCallDataItems = dataItemsMap.get(SipAddress.CONTENT_ITEM_TYPE);
if (phoneDataItems != null && phoneDataItems.size() == 1) {
mOnlyOnePhoneNumber = true;
+ } else {
+ mOnlyOnePhoneNumber = false;
}
String[] phoneNumbers = null;
if (phoneDataItems != null) {
@@ -1208,6 +1210,8 @@
final List<DataItem> emailDataItems = dataItemsMap.get(Email.CONTENT_ITEM_TYPE);
if (emailDataItems != null && emailDataItems.size() == 1) {
mOnlyOneEmail = true;
+ } else {
+ mOnlyOneEmail = false;
}
String[] emailAddresses = null;
if (emailDataItems != null) {