diff options
author | Andrew Lee <anwlee@google.com> | 2015-09-09 00:32:42 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-09-09 00:32:42 +0000 |
commit | c8bbcff1114c71bd55a8e6bd63fc9eca0c7d257d (patch) | |
tree | 58aa3ff2f628670f42ad0e244b60f39f89b41200 | |
parent | 596817c2b232a97e17e674013e6200fb8799393b (diff) | |
parent | b732965f5d7e1137902ea4b849ffd2e464f62346 (diff) | |
download | InCallUI-c8bbcff1114c71bd55a8e6bd63fc9eca0c7d257d.tar.gz |
am b732965f: am d67b107d: Merge "Force conference call phone numbers to LTR." into mnc-dr-dev
* commit 'b732965f5d7e1137902ea4b849ffd2e464f62346':
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); } |