diff options
author | Andrew Lee <anwlee@google.com> | 2015-09-09 00:22:52 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-09-09 00:22:52 +0000 |
commit | b732965f5d7e1137902ea4b849ffd2e464f62346 (patch) | |
tree | cd584ffef26e41f1e0302f0eb3a74b4549c80c12 | |
parent | bdb86ffb62b3fd8ab8f5447217f27b21c0f15468 (diff) | |
parent | d67b107d5c3215c188a10225d90ed2c6da12ea27 (diff) | |
download | InCallUI-b732965f5d7e1137902ea4b849ffd2e464f62346.tar.gz |
am d67b107d: Merge "Force conference call phone numbers to LTR." into mnc-dr-dev
* commit 'd67b107d5c3215c188a10225d90ed2c6da12ea27':
Force conference call phone numbers to LTR.
-rw-r--r-- | src/com/android/incallui/ConferenceParticipantListAdapter.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/com/android/incallui/ConferenceParticipantListAdapter.java b/src/com/android/incallui/ConferenceParticipantListAdapter.java index bff04a1e..7ddeada3 100644 --- a/src/com/android/incallui/ConferenceParticipantListAdapter.java +++ b/src/com/android/incallui/ConferenceParticipantListAdapter.java @@ -19,6 +19,8 @@ package com.android.incallui; import android.content.Context; import android.net.Uri; import android.telephony.PhoneNumberUtils; +import android.text.BidiFormatter; +import android.text.TextDirectionHeuristics; import android.text.TextUtils; import android.view.LayoutInflater; import android.view.View; @@ -418,7 +420,9 @@ public class ConferenceParticipantListAdapter extends BaseAdapter { numberTypeTextView.setVisibility(View.GONE); } else { numberTextView.setVisibility(View.VISIBLE); - numberTextView.setText(PhoneNumberUtils.createTtsSpannable(callerNumber)); + numberTextView.setText(PhoneNumberUtils.createTtsSpannable( + BidiFormatter.getInstance().unicodeWrap( + callerNumber, TextDirectionHeuristics.LTR))); numberTypeTextView.setVisibility(View.VISIBLE); numberTypeTextView.setText(callerNumberType); } |