aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/com/android/providers/contacts/ContactLookupKey.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/providers/contacts/ContactLookupKey.java b/src/com/android/providers/contacts/ContactLookupKey.java
index bc815838..77821985 100644
--- a/src/com/android/providers/contacts/ContactLookupKey.java
+++ b/src/com/android/providers/contacts/ContactLookupKey.java
@@ -58,8 +58,8 @@ public class ContactLookupKey {
public static void appendToLookupKey(StringBuilder lookupKey, String accountType,
String accountName, String sourceId, String displayName) {
- if (TextUtils.isEmpty(sourceId) && TextUtils.isEmpty(displayName)) {
- return;
+ if (displayName == null) {
+ displayName = "";
}
if (lookupKey.length() != 0) {