diff options
author | wangqi <wangqi@google.com> | 2017-06-20 15:22:44 -0700 |
---|---|---|
committer | Eric Erfanian <erfanian@google.com> | 2017-06-21 13:45:29 -0700 |
commit | 64be21e529fd84b839a7872d63afb8f1cec56037 (patch) | |
tree | ee34aa0213f75355c39b18e80887c64ffdc02594 /java | |
parent | 153e4c9018d66554e50f3956864045677e3ef164 (diff) |
Fix crash on voicemail mark as read when lacking write call log permission.
PiperOrigin-RevId: 159622902
Change-Id: Idabc3122601e442a07b31c38287af767651e9970
Diffstat (limited to 'java')
-rw-r--r-- | java/com/android/dialer/app/calllog/CallLogAsyncTaskUtil.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/java/com/android/dialer/app/calllog/CallLogAsyncTaskUtil.java b/java/com/android/dialer/app/calllog/CallLogAsyncTaskUtil.java index 10866aae2..b1ad0d9a2 100644 --- a/java/com/android/dialer/app/calllog/CallLogAsyncTaskUtil.java +++ b/java/com/android/dialer/app/calllog/CallLogAsyncTaskUtil.java @@ -110,7 +110,8 @@ public class CallLogAsyncTaskUtil { } public static void markCallAsRead(@NonNull final Context context, @NonNull final long[] callIds) { - if (!PermissionsUtil.hasPhonePermissions(context)) { + if (!PermissionsUtil.hasPhonePermissions(context) + || !PermissionsUtil.hasCallLogWritePermissions(context)) { return; } if (sAsyncTaskExecutor == null) { |