diff options
Diffstat (limited to 'java/com/android')
-rw-r--r-- | java/com/android/dialer/app/calllog/CallLogNotificationsQueryHelper.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/java/com/android/dialer/app/calllog/CallLogNotificationsQueryHelper.java b/java/com/android/dialer/app/calllog/CallLogNotificationsQueryHelper.java index ce6e5baf4..d13702931 100644 --- a/java/com/android/dialer/app/calllog/CallLogNotificationsQueryHelper.java +++ b/java/com/android/dialer/app/calllog/CallLogNotificationsQueryHelper.java @@ -111,7 +111,14 @@ public class CallLogNotificationsQueryHelper { return; } if (!PermissionsUtil.hasPhonePermissions(context)) { - LogUtil.e("CallLogNotificationsQueryHelper.markMissedCallsInCallLogAsRead", "no permission"); + LogUtil.e( + "CallLogNotificationsQueryHelper.markMissedCallsInCallLogAsRead", "no phone permission"); + return; + } + if (!PermissionsUtil.hasCallLogWritePermissions(context)) { + LogUtil.e( + "CallLogNotificationsQueryHelper.markMissedCallsInCallLogAsRead", + "no call log write permission"); return; } |