summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorke Lee <yorkelee@google.com>2015-07-29 01:00:33 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-07-29 01:00:33 +0000
commit5930808671bd0acfbaffd4773cc275f72204aa94 (patch)
tree4fa1aaf5cc9cbe688af5ca175f29a68b3fc62cdd
parentbb15144e72c87ea571e8718b1d788c7a83acbb04 (diff)
parent2b83b0f09ad01ec9651e86b21dc7a19ead6f7d74 (diff)
am 2b83b0f0: Merge "Don\'t update call log in CallerInfoQueryThread without permission" into mnc-dev
* commit '2b83b0f09ad01ec9651e86b21dc7a19ead6f7d74': 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;