summaryrefslogtreecommitdiffstats
path: root/src/com/android/contacts
diff options
context:
space:
mode:
authorIhab Awad <ihab@google.com>2014-12-05 13:37:50 -0800
committerIhab Awad <ihab@google.com>2014-12-05 15:27:08 -0800
commita8b34ea2737a912ebae915ae73c7212ee07c4421 (patch)
tree368297abebeaf06b4463c08cc5b6b3422fe4ad43 /src/com/android/contacts
parent9e66cdef6e5657cd1fd75e316dec8fb2d94694f0 (diff)
downloadandroid_packages_apps_ContactsCommon-a8b34ea2737a912ebae915ae73c7212ee07c4421.tar.gz
android_packages_apps_ContactsCommon-a8b34ea2737a912ebae915ae73c7212ee07c4421.tar.bz2
android_packages_apps_ContactsCommon-a8b34ea2737a912ebae915ae73c7212ee07c4421.zip
Add Text-to-Speech annotations for phone number displays (2/3)
Bug: 17321294 Change-Id: I98a6d6dd9684c1f3c29a97263155713493e162c2
Diffstat (limited to 'src/com/android/contacts')
-rw-r--r--src/com/android/contacts/common/widget/SelectPhoneAccountDialogFragment.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/com/android/contacts/common/widget/SelectPhoneAccountDialogFragment.java b/src/com/android/contacts/common/widget/SelectPhoneAccountDialogFragment.java
index 86db1747..08702543 100644
--- a/src/com/android/contacts/common/widget/SelectPhoneAccountDialogFragment.java
+++ b/src/com/android/contacts/common/widget/SelectPhoneAccountDialogFragment.java
@@ -26,6 +26,7 @@ import android.content.Context;
import android.content.DialogInterface;
import android.os.Bundle;
import android.telecom.TelecomManager;
+import android.telephony.PhoneNumberUtils;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;
@@ -194,7 +195,9 @@ public class SelectPhoneAccountDialogFragment extends DialogFragment {
holder.numberTextView.setVisibility(View.GONE);
} else {
holder.numberTextView.setVisibility(View.VISIBLE);
- holder.numberTextView.setText(account.getAddress().getSchemeSpecificPart());
+ holder.numberTextView.setText(
+ PhoneNumberUtils.ttsSpanAsPhoneNumber(
+ account.getAddress().getSchemeSpecificPart()));
}
holder.imageView.setImageDrawable(account.createIconDrawable(getContext()));
return rowView;