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

Commit 963f83bd authored by Yorke Lee's avatar Yorke Lee
Browse files

Don't update call log in CallerInfoQueryThread without permission

Bug: 22801077
Change-Id: I16c9c574597564c9f84bbcc00211e097538529de
parent ed058349
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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;