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

Commit 3dda1fa4 authored by Santos Cordon's avatar Santos Cordon Committed by Android Partner Code Review
Browse files

Merge "DO NOT MERGE Do not hide any call log entries when they are added." into m-wireless-dev

parents b2ff4151 14c9121e
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -446,7 +446,6 @@ public class CallLog {
                long start, int duration, Long dataUsage, boolean addForAllUsers) {
            final ContentResolver resolver = context.getContentResolver();
            int numberPresentation = PRESENTATION_ALLOWED;
            boolean isHidden = false;

            TelecomManager tm = null;
            try {
@@ -461,12 +460,6 @@ public class CallLog {
                    if (address != null) {
                        accountAddress = address.getSchemeSpecificPart();
                    }
                } else {
                    // We could not find the account through telecom. For call log entries that
                    // are added with a phone account which is not registered, we automatically
                    // mark them as hidden. They are unhidden once the account is registered.
                    Log.i(LOG_TAG, "Marking call log entry as hidden.");
                    isHidden = true;
                }
            }

@@ -512,7 +505,6 @@ public class CallLog {
            values.put(PHONE_ACCOUNT_COMPONENT_NAME, accountComponentString);
            values.put(PHONE_ACCOUNT_ID, accountId);
            values.put(PHONE_ACCOUNT_ADDRESS, accountAddress);
            values.put(PHONE_ACCOUNT_HIDDEN, Integer.valueOf(isHidden ? 1 : 0));
            values.put(NEW, Integer.valueOf(1));

            if (callType == MISSED_TYPE) {