summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Lee <anwlee@google.com>2015-09-09 00:10:41 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-09-09 00:10:41 +0000
commitd67b107d5c3215c188a10225d90ed2c6da12ea27 (patch)
treebbd18ab87c7b1ab3b1d995d10c9ff9655487caeb
parent46e581fa8b4ae7a9c58441d39c080252a1eb60af (diff)
parentd93e6dd246cca53649bfdbb525b7c6c785d2d4fa (diff)
downloadInCallUI-d67b107d5c3215c188a10225d90ed2c6da12ea27.tar.gz
Merge "Force conference call phone numbers to LTR." into mnc-dr-dev
-rw-r--r--src/com/android/incallui/ConferenceParticipantListAdapter.java6
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);
}