commit | 8e9e782cb7f15a8bcca3335374f641d5a149a5a2 | [log] [tgz] |
---|---|---|
author | Marcus Hagerott <mhagerott@google.com> | Tue Nov 22 10:29:40 2016 -0800 |
committer | Marcus Hagerott <mhagerott@google.com> | Tue Nov 22 10:30:46 2016 -0800 |
tree | b78ace625cf66944b8e4330bd21587b70b6f141e | |
parent | 00e383012246c4d649ad6fe5f684b8986e566333 [diff] |
Fix failing SIM import test Failure introduced in change I1eb259f5a6a6b97150d67b9e1e8238529c3c0dba Test ran GoogleContactsTests Change-Id: Idb28a7fd1e529a62a5fe0ec1f9ee00adef54e3eb
diff --git a/src/com/android/contacts/common/model/SimContact.java b/src/com/android/contacts/common/model/SimContact.java index 7eeb89f..2d26029 100644 --- a/src/com/android/contacts/common/model/SimContact.java +++ b/src/com/android/contacts/common/model/SimContact.java
@@ -70,8 +70,8 @@ public void appendCreateContactOperations(List<ContentProviderOperation> ops, AccountWithDataSet targetAccount) { - // nothing to save. - if (mName == null && mPhone == null && mEmails == null) return; + // There is nothing to save so skip it. + if (!hasName() && !hasPhone() && !hasEmails()) return; final int rawContactOpIndex = ops.size(); ops.add(ContentProviderOperation.newInsert(ContactsContract.RawContacts.CONTENT_URI)