Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0a41f3c3 authored by zachh's avatar zachh Committed by Copybara-Service
Browse files

Check for WRITE_CALL_LOG permission in CallLogNotificationsQueryHelper.

TEST=unit
Bug: 79667976,79925108
Test: unit
PiperOrigin-RevId: 197468611
Change-Id: Ifedddd2bccd76b1fc2c9d3ea4e9854bfe6a218e5
parent b780cb91
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -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;
    }