diff options
Diffstat (limited to 'java/com/android/dialer/phonenumbercache')
-rw-r--r-- | java/com/android/dialer/phonenumbercache/ContactInfo.java | 5 | ||||
-rw-r--r-- | java/com/android/dialer/phonenumbercache/ContactInfoHelper.java | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/java/com/android/dialer/phonenumbercache/ContactInfo.java b/java/com/android/dialer/phonenumbercache/ContactInfo.java index 9def939ca..5546553f9 100644 --- a/java/com/android/dialer/phonenumbercache/ContactInfo.java +++ b/java/com/android/dialer/phonenumbercache/ContactInfo.java @@ -17,6 +17,7 @@ package com.android.dialer.phonenumbercache; import android.net.Uri; +import android.support.annotation.Nullable; import android.text.TextUtils; import com.android.contacts.common.ContactsUtils.UserType; import com.android.contacts.common.util.UriUtils; @@ -58,12 +59,12 @@ public class ContactInfo { public boolean isBadData; public String objectId; public @UserType long userType; - public ContactSource.Type sourceType; + public @Nullable ContactSource.Type sourceType = ContactSource.Type.UNKNOWN_SOURCE_TYPE; /** * True if local contact exists. This is only used for Cequint Caller ID so it won't overwrite * photo if local contact exists. */ - boolean contactExists; + public boolean contactExists; /** @see android.provider.ContactsContract.CommonDataKinds.Phone#CARRIER_PRESENCE */ public int carrierPresence; diff --git a/java/com/android/dialer/phonenumbercache/ContactInfoHelper.java b/java/com/android/dialer/phonenumbercache/ContactInfoHelper.java index a9a5edce5..bd4ba9764 100644 --- a/java/com/android/dialer/phonenumbercache/ContactInfoHelper.java +++ b/java/com/android/dialer/phonenumbercache/ContactInfoHelper.java @@ -327,7 +327,7 @@ public class ContactInfoHelper { if (uri == null) { return null; } - if (!PermissionsUtil.hasContactsPermissions(mContext)) { + if (!PermissionsUtil.hasContactsReadPermissions(mContext)) { return ContactInfo.EMPTY; } |