diff options
author | Brandon Maxwell <maxwelb@google.com> | 2015-11-12 23:52:33 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2015-11-12 23:52:33 +0000 |
commit | 7ae965c7fa9748eeb240912eb0f5835944ad0afa (patch) | |
tree | 00cfcf607b10989b8272481fba43e58e0eb48b7f | |
parent | 0a6f700df273c98f5051cd43326dc78afc2eff77 (diff) | |
parent | f3b23ba40d6c6c60f7e01c84df69712d7ae9bae0 (diff) |
Modiying callLog context menu to force numbers LTR
am: f3b23ba40d
* commit 'f3b23ba40d6c6c60f7e01c84df69712d7ae9bae0':
Modiying callLog context menu to force numbers LTR
-rw-r--r-- | src/com/android/dialer/calllog/CallLogListItemViewHolder.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/com/android/dialer/calllog/CallLogListItemViewHolder.java b/src/com/android/dialer/calllog/CallLogListItemViewHolder.java index 9cc8296b8..099877f1d 100644 --- a/src/com/android/dialer/calllog/CallLogListItemViewHolder.java +++ b/src/com/android/dialer/calllog/CallLogListItemViewHolder.java @@ -28,11 +28,12 @@ import android.support.v7.widget.CardView; import android.support.v7.widget.RecyclerView; import android.telecom.PhoneAccountHandle; import android.telephony.PhoneNumberUtils; +import android.text.BidiFormatter; +import android.text.TextDirectionHeuristics; import android.text.TextUtils; import android.view.ContextMenu; import android.view.MenuItem; import android.view.View; -import android.view.ViewGroup; import android.view.ViewStub; import android.widget.ImageView; import android.widget.QuickContactBadge; @@ -283,7 +284,8 @@ public final class CallLogListItemViewHolder extends RecyclerView.ViewHolder if (callType == CallLog.Calls.VOICEMAIL_TYPE) { menu.setHeaderTitle(mContext.getResources().getText(R.string.voicemail)); } else { - menu.setHeaderTitle(PhoneNumberUtils.createTtsSpannable(number)); + menu.setHeaderTitle(PhoneNumberUtils.createTtsSpannable( + BidiFormatter.getInstance().unicodeWrap(number, TextDirectionHeuristics.LTR))); } menu.add(ContextMenu.NONE, R.id.context_menu_copy_to_clipboard, ContextMenu.NONE, |