From b087d98494fd0b2308367be3f3551041d56149ed Mon Sep 17 00:00:00 2001 From: erfanian Date: Wed, 1 Nov 2017 10:35:49 -0700 Subject: Fixed that name mixed Hebrew is not displayed correctly at call log MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The display name mixed with Hebrew and English is not displayed correctly at call log, because the TextDirection of the display name area is not set correctly. Fixed by correctly setting TextDirection. Affected Area: Direction of display name of call log list. Bug: 68024853 Public-Origin-Change-Id: I3fb0e248d380d5431a8026b8491534b46911af99 Signed-off-by: Eric Erfanian Author: yuichiro fujiwara Test: manual PiperOrigin-RevId: 174200487 Change-Id: Ib2d207ebb91a99662e4156f84c696caca82f877a --- java/com/android/dialer/app/calllog/PhoneCallDetailsHelper.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'java/com/android/dialer/app') diff --git a/java/com/android/dialer/app/calllog/PhoneCallDetailsHelper.java b/java/com/android/dialer/app/calllog/PhoneCallDetailsHelper.java index a09bfd41f..ad931e87a 100644 --- a/java/com/android/dialer/app/calllog/PhoneCallDetailsHelper.java +++ b/java/com/android/dialer/app/calllog/PhoneCallDetailsHelper.java @@ -139,6 +139,9 @@ public class PhoneCallDetailsHelper { views.nameView.setTextDirection(View.TEXT_DIRECTION_LTR); } else { nameText = details.getPreferredName(); + // "nameView" is updated from phone number to contact name after number matching. + // Since TextDirection remains at View.TEXT_DIRECTION_LTR, initialize it. + views.nameView.setTextDirection(View.TEXT_DIRECTION_INHERIT); } views.nameView.setText(nameText); -- cgit v1.2.3