summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorke Lee <yorkelee@google.com>2015-07-29 01:21:27 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-07-29 01:21:27 +0000
commitaf7899163012fbcd6921cc6f031470a9c0185d14 (patch)
tree50563775129ff9d1abf501f6df87487b0185c944
parent4d4eb463e2881625c00e6c84386901749ce89ad2 (diff)
parent5930808671bd0acfbaffd4773cc275f72204aa94 (diff)
am 59308086: am 2b83b0f0: Merge "Don\'t update call log in CallerInfoQueryThread without permission" into mnc-dev
* commit '5930808671bd0acfbaffd4773cc275f72204aa94': Don't update call log in CallerInfoQueryThread without permission
-rw-r--r--src/com/android/dialer/calllog/ContactInfoHelper.java4
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;