diff options
author | Andrew Lee <anwlee@google.com> | 2014-12-04 20:24:43 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-12-04 20:24:43 +0000 |
commit | ea0d3fc18b558ba733661fec48389f2854fbba40 (patch) | |
tree | bc4e60ac9d8d5013bedce51aa1cda27d21d302dc /InCallUI | |
parent | 41db8e6f56d010574e0bce5da4365378ac30c98e (diff) | |
parent | 1a6f06f439b5e930de95023c23f38329c9a82b80 (diff) |
am f53757b9: am c13806df: Bidi wrap phone number in incoming notification.
* commit 'f53757b9de15ed67f02aefd9dfd4edd289b8a997':
Bidi wrap phone number in incoming notification.
Diffstat (limited to 'InCallUI')
-rw-r--r-- | InCallUI/src/com/android/incallui/StatusBarNotifier.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/InCallUI/src/com/android/incallui/StatusBarNotifier.java b/InCallUI/src/com/android/incallui/StatusBarNotifier.java index 5eaf1080f..89192f882 100644 --- a/InCallUI/src/com/android/incallui/StatusBarNotifier.java +++ b/InCallUI/src/com/android/incallui/StatusBarNotifier.java @@ -31,6 +31,8 @@ import android.graphics.drawable.BitmapDrawable; import android.os.Handler; import android.os.Message; import android.telecom.PhoneAccount; +import android.text.BidiFormatter; +import android.text.TextDirectionHeuristics; import android.text.TextUtils; import com.android.contacts.common.util.BitmapUtil; @@ -391,7 +393,9 @@ public class StatusBarNotifier implements InCallPresenter.InCallStateListener { return mContext.getResources().getString(R.string.card_title_conf_call); } if (TextUtils.isEmpty(contactInfo.name)) { - return contactInfo.number; + return TextUtils.isEmpty(contactInfo.number) ? null + : BidiFormatter.getInstance().unicodeWrap( + contactInfo.number.toString(), TextDirectionHeuristics.LTR); } return contactInfo.name; |