diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2018-03-08 02:50:26 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2018-03-08 02:50:26 +0000 |
commit | d2186758f163f0808379cfdce56223032ed8b437 (patch) | |
tree | 1756a87c6a845b9d81edb95c2e05ac60cbc53411 /java/com/android/dialer/app/calllog/MissedCallNotifier.java | |
parent | 2de4a3e679ecdaf9a6ea767ce9be5c92472b29d0 (diff) | |
parent | a8d677fce88d2add418cdcc868f2a00b2e2d702e (diff) |
Merge changes I23025e9b,Ic9486b3f
* changes:
Support local emergency phone number check when there are multiple SIMs.
Add additional logging to missed call notification code path
Diffstat (limited to 'java/com/android/dialer/app/calllog/MissedCallNotifier.java')
-rw-r--r-- | java/com/android/dialer/app/calllog/MissedCallNotifier.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/java/com/android/dialer/app/calllog/MissedCallNotifier.java b/java/com/android/dialer/app/calllog/MissedCallNotifier.java index 80901ce88..158ae2b03 100644 --- a/java/com/android/dialer/app/calllog/MissedCallNotifier.java +++ b/java/com/android/dialer/app/calllog/MissedCallNotifier.java @@ -106,6 +106,8 @@ public class MissedCallNotifier implements Worker<Pair<Integer, String>, Void> { @VisibleForTesting @WorkerThread void updateMissedCallNotification(int count, @Nullable String number) { + LogUtil.enterBlock("MissedCallNotifier.updateMissedCallNotification"); + final int titleResId; CharSequence expandedText; // The text in the notification's line 1 and 2. @@ -137,6 +139,7 @@ public class MissedCallNotifier implements Worker<Pair<Integer, String>, Void> { if (count == CallLogNotificationsService.UNKNOWN_MISSED_CALL_COUNT) { // If the intent did not contain a count, and we are unable to get a count from the // call log, then no notification can be shown. + LogUtil.i("MissedCallNotifier.updateMissedCallNotification", "unknown missed call count"); return; } @@ -144,6 +147,9 @@ public class MissedCallNotifier implements Worker<Pair<Integer, String>, Void> { boolean useCallList = newCalls != null; if (count == 1) { + LogUtil.i( + "MissedCallNotifier.updateMissedCallNotification", + "1 missed call, looking up contact info"); NewCall call = useCallList ? newCalls.get(0) @@ -188,6 +194,8 @@ public class MissedCallNotifier implements Worker<Pair<Integer, String>, Void> { expandedText = context.getString(R.string.notification_missedCallsMsg, count); } + LogUtil.i("MissedCallNotifier.updateMissedCallNotification", "preparing notification"); + // Create a public viewable version of the notification, suitable for display when sensitive // notification content is hidden. Notification.Builder publicSummaryBuilder = createNotificationBuilder(); |