diff options
author | Yorke Lee <yorkelee@google.com> | 2015-07-29 00:42:43 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-07-29 00:42:43 +0000 |
commit | 2b83b0f09ad01ec9651e86b21dc7a19ead6f7d74 (patch) | |
tree | d8993cbacde7ba5b09c502a6d03faf74bcb7da8f | |
parent | 142362f8253e7456640c14d6acaf1969afc4b68d (diff) | |
parent | 963f83bdcee1da7227233e2a3abfbce203433782 (diff) |
Merge "Don't update call log in CallerInfoQueryThread without permission" into mnc-dev
-rw-r--r-- | src/com/android/dialer/calllog/ContactInfoHelper.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/com/android/dialer/calllog/ContactInfoHelper.java b/src/com/android/dialer/calllog/ContactInfoHelper.java index 9a660e1ae..20d33a003 100644 --- a/src/com/android/dialer/calllog/ContactInfoHelper.java +++ b/src/com/android/dialer/calllog/ContactInfoHelper.java @@ -298,6 +298,10 @@ public class ContactInfoHelper { */ public void updateCallLogContactInfo(String number, String countryIso, ContactInfo updatedInfo, ContactInfo callLogInfo) { + if (!PermissionsUtil.hasPermission(mContext, android.Manifest.permission.WRITE_CALL_LOG)) { + return; + } + final ContentValues values = new ContentValues(); boolean needsUpdate = false; |