From 14c9121e3c8f09c31f5de0d23c577263da665f02 Mon Sep 17 00:00:00 2001 From: Santos Cordon Date: Thu, 12 Mar 2015 11:51:42 -0700 Subject: [PATCH] DO NOT MERGE Do not hide any call log entries when they are added. When a call log entry is added, and it's phone account does not match a currently registered one, we set it to hidden. This code was built for the calllog restore case where call log entries would be hidden when added if the original phone account wasn't also present on the new device (where the restore is being performed). We no longer do that so we're removing the code that sets any call log entry to hidden. -- Resubmitting since this change was lost to a merge conflict -- Change-Id: I1ef094d5a35063e8f89cd1ecb1e5a0b59361781c --- core/java/android/provider/CallLog.java | 8 -------- 1 file changed, 8 deletions(-) diff --git a/core/java/android/provider/CallLog.java b/core/java/android/provider/CallLog.java index 2df9dbfb467bb..dc8e76ff132cb 100644 --- a/core/java/android/provider/CallLog.java +++ b/core/java/android/provider/CallLog.java @@ -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) {