summaryrefslogtreecommitdiff
path: root/InCallUI/src
diff options
context:
space:
mode:
authorAndrew Lee <anwlee@google.com>2015-09-08 14:29:37 -0700
committerAndrew Lee <anwlee@google.com>2015-09-08 14:29:37 -0700
commit7db1508bf72b470e192d539516c41b641d57d3fb (patch)
tree6620aedd16b87275ca42ed0c3134da88d9fa142b /InCallUI/src
parent4c90c7f6b536254afa495a464c4e7ce780109e3a (diff)
Force conference call phone numbers to LTR.
Bug: 23779012 Change-Id: I4241130e851e02c6025e77e9c05d2f5908c386c9
Diffstat (limited to 'InCallUI/src')
-rw-r--r--InCallUI/src/com/android/incallui/ConferenceParticipantListAdapter.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/InCallUI/src/com/android/incallui/ConferenceParticipantListAdapter.java b/InCallUI/src/com/android/incallui/ConferenceParticipantListAdapter.java
index bff04a1ec..7ddeada33 100644
--- a/InCallUI/src/com/android/incallui/ConferenceParticipantListAdapter.java
+++ b/InCallUI/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);
}