summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorke Lee <yorkelee@google.com>2015-07-29 01:57:27 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-07-29 01:57:27 +0000
commit87a4f832928f3a795490b8a048aba481bcb5e4b2 (patch)
tree56217c46306b3dfeff9eda260218fcf053a2503d
parent0083bf28badde4c26e455d9a776c0070d4a71acf (diff)
parent745329af0bf1fc409b0d14dbcf8ef68628b18a5f (diff)
am 745329af: am af789916: am 59308086: am 2b83b0f0: Merge "Don\'t update call log in CallerInfoQueryThread without permission" into mnc-dev
* commit '745329af0bf1fc409b0d14dbcf8ef68628b18a5f': 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;