diff options
author | linyuh <linyuh@google.com> | 2018-03-22 17:39:29 -0700 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2018-03-26 22:16:16 -0700 |
commit | f4b484485a4519a99d797bd9c0c1cc902cfc7414 (patch) | |
tree | de75b03528aae36b06fc402fa39d081250671048 /java/com/android/dialer/searchfragment | |
parent | 009695e477f02b13d563f17a8de0e179d7715bf9 (diff) |
Correctly display phone numbers containing whitespaces in RTL context.
Bug: 74421656
Test: DialerBidiFormatterTest
PiperOrigin-RevId: 190154072
Change-Id: Ic7cb3be702dd28b07b6e5e1e6d89f75f0bb12655
Diffstat (limited to 'java/com/android/dialer/searchfragment')
-rw-r--r-- | java/com/android/dialer/searchfragment/common/res/layout/search_contact_row.xml | 4 | ||||
-rw-r--r-- | java/com/android/dialer/searchfragment/cp2/SearchContactViewHolder.java | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/java/com/android/dialer/searchfragment/common/res/layout/search_contact_row.xml b/java/com/android/dialer/searchfragment/common/res/layout/search_contact_row.xml index 9be7fa046..a0d9dd274 100644 --- a/java/com/android/dialer/searchfragment/common/res/layout/search_contact_row.xml +++ b/java/com/android/dialer/searchfragment/common/res/layout/search_contact_row.xml @@ -39,7 +39,7 @@ android:layout_centerVertical="true" android:layout_marginStart="8dp"> - <TextView + <com.android.dialer.widget.BidiTextView android:id="@+id/primary" android:layout_width="wrap_content" android:layout_height="wrap_content" @@ -47,7 +47,7 @@ android:fontFamily="sans-serif" style="@style/PrimaryText"/> - <TextView + <com.android.dialer.widget.BidiTextView android:id="@+id/secondary" android:layout_width="wrap_content" android:layout_height="wrap_content" diff --git a/java/com/android/dialer/searchfragment/cp2/SearchContactViewHolder.java b/java/com/android/dialer/searchfragment/cp2/SearchContactViewHolder.java index e36df4bf7..9d18e07b1 100644 --- a/java/com/android/dialer/searchfragment/cp2/SearchContactViewHolder.java +++ b/java/com/android/dialer/searchfragment/cp2/SearchContactViewHolder.java @@ -30,7 +30,6 @@ import android.view.View; import android.view.View.OnClickListener; import android.widget.ImageView; import android.widget.QuickContactBadge; -import android.widget.TextView; import com.android.dialer.common.Assert; import com.android.dialer.contactphoto.ContactPhotoManager; import com.android.dialer.dialercontact.DialerContact; @@ -44,6 +43,7 @@ import com.android.dialer.searchfragment.common.QueryBoldingUtil; import com.android.dialer.searchfragment.common.R; import com.android.dialer.searchfragment.common.RowClickListener; import com.android.dialer.searchfragment.common.SearchCursor; +import com.android.dialer.widget.BidiTextView; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; @@ -67,8 +67,8 @@ public final class SearchContactViewHolder extends ViewHolder implements OnClick private final RowClickListener listener; private final QuickContactBadge photo; - private final TextView nameOrNumberView; - private final TextView numberView; + private final BidiTextView nameOrNumberView; + private final BidiTextView numberView; private final ImageView callToActionView; private final Context context; |