summaryrefslogtreecommitdiff
path: root/java/com/android/dialer/calllogutils/CallLogEntryText.java
diff options
context:
space:
mode:
authorlinyuh <linyuh@google.com>2018-06-07 17:34:13 -0700
committerCopybara-Service <copybara-piper@google.com>2018-06-07 18:43:10 -0700
commitbac4da9d520846ab4e4f8cbcbb80927076deec27 (patch)
treec32cdaeff8e83f712332a27f603809686db53139 /java/com/android/dialer/calllogutils/CallLogEntryText.java
parentecd339905308fd7101a6bf35d947bc6432e1b331 (diff)
Wrap phone numbers in custom content descriptions in the new call log with TTS span.
Bug: 70989658 Test: Manual (TTS span is not testable) PiperOrigin-RevId: 199724621 Change-Id: I6dc809660eecdd987ee966f30b68dbbf7bcf2094
Diffstat (limited to 'java/com/android/dialer/calllogutils/CallLogEntryText.java')
-rw-r--r--java/com/android/dialer/calllogutils/CallLogEntryText.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/java/com/android/dialer/calllogutils/CallLogEntryText.java b/java/com/android/dialer/calllogutils/CallLogEntryText.java
index 895497f0f..1ec172f6f 100644
--- a/java/com/android/dialer/calllogutils/CallLogEntryText.java
+++ b/java/com/android/dialer/calllogutils/CallLogEntryText.java
@@ -18,6 +18,7 @@ package com.android.dialer.calllogutils;
import android.content.Context;
import android.provider.CallLog.Calls;
+import android.telephony.PhoneNumberUtils;
import android.text.TextUtils;
import com.android.dialer.calllog.model.CoalescedRow;
import com.android.dialer.duo.DuoComponent;
@@ -69,7 +70,7 @@ public final class CallLogEntryText {
// 4th preference: the formatted number.
if (!TextUtils.isEmpty(row.getFormattedNumber())) {
- return row.getFormattedNumber();
+ return PhoneNumberUtils.createTtsSpannable(row.getFormattedNumber());
}
// Last resort: show "Unknown".