diff options
author | kaiyiz <kaiyiz@codeaurora.org> | 2014-10-17 11:32:17 +0800 |
---|---|---|
committer | Xiaojing Zhang <zhangx@codeaurora.org> | 2014-11-04 20:34:40 -0800 |
commit | ae3f950291b33af3f80f664a43ea12d73c102f53 (patch) | |
tree | 76f54d3bd00d7bddb73861afa6e50e1f285fd2b4 | |
parent | f93fb06c62c809676226ceb497b1ab54a058560d (diff) | |
download | android_packages_apps_ContactsCommon-ae3f950291b33af3f80f664a43ea12d73c102f53.tar.gz android_packages_apps_ContactsCommon-ae3f950291b33af3f80f664a43ea12d73c102f53.tar.bz2 android_packages_apps_ContactsCommon-ae3f950291b33af3f80f664a43ea12d73c102f53.zip |
ContactsCommon: Modify edit contact result when delete all information
The judgment of photo information is incorrect,
photo entry who's information is empty should be
mark deleted also when edit contact.
Modify the judgment and mark the photo entry without
information deleted
CRs-Fixed: 740025
Change-Id: Ib93445d7a06e3383e0623deb6933b20c14b8733c
-rw-r--r-- | src/com/android/contacts/common/model/RawContactModifier.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/contacts/common/model/RawContactModifier.java b/src/com/android/contacts/common/model/RawContactModifier.java index 954123ba..5ddf0f05 100644 --- a/src/com/android/contacts/common/model/RawContactModifier.java +++ b/src/com/android/contacts/common/model/RawContactModifier.java @@ -487,7 +487,7 @@ public class RawContactModifier { */ public static boolean isEmpty(ValuesDelta values, DataKind kind) { if (Photo.CONTENT_ITEM_TYPE.equals(kind.mimeType)) { - return values.isInsert() && values.getAsByteArray(Photo.PHOTO) == null; + return values.getAsByteArray(Photo.PHOTO) == null; } // No defined fields mean this row is always empty |