aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/com/android/providers/contacts/ContactLookupKey.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/com/android/providers/contacts/ContactLookupKey.java b/src/com/android/providers/contacts/ContactLookupKey.java
index be718a1a..fb3a6fec 100644
--- a/src/com/android/providers/contacts/ContactLookupKey.java
+++ b/src/com/android/providers/contacts/ContactLookupKey.java
@@ -16,8 +16,6 @@
package com.android.providers.contacts;
-import android.net.Uri;
-
import java.util.ArrayList;
/**
@@ -152,6 +150,9 @@ public class ContactLookupKey {
lookupType = LOOKUP_TYPE_DISPLAY_NAME;
} else if (c == 'r') {
lookupType = LOOKUP_TYPE_RAW_CONTACT_ID;
+ } else if (c == 'c') {
+ throw new IllegalArgumentException(
+ "Work contact lookup key is not accepted here: " + lookupKey);
} else {
throw new IllegalArgumentException("Invalid lookup id: " + lookupKey);
}