Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d9171594 authored by Zhu Youhua's avatar Zhu Youhua Committed by Linux Build Service Account
Browse files

Dialer: Phone number is undisplayed in Call Screen if contact is big

-Set singleline to true in mPrimaryName;
-Add Emergency number judegement and set singleline to false in method
 setPrimayName so that display Emergency number in Emergency mode.

CRs-Fixed: 1038490
Change-Id: I594fbf4a988fb343110a05348ad48df9c44c11be
parent 9aae4a3c
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -121,7 +121,8 @@
            android:textAlignment="viewStart"
            android:textAppearance="?android:attr/textAppearanceLarge"
            android:textSize="@dimen/call_name_text_size"
            android:singleLine="false"
            android:singleLine="true"
            android:ellipsize="end"
            ex:resizing_text_min_size="@dimen/call_name_text_min_size" />

        <!-- Contact photo for primary call info -->
+3 −0
Original line number Diff line number Diff line
@@ -618,6 +618,9 @@ public class CallCardFragment extends BaseFragment<CallCardPresenter, CallCardPr
            // Set direction of the name field
            int nameDirection = View.TEXT_DIRECTION_INHERIT;
            if (nameIsNumber) {
                if (PhoneNumberUtils.isEmergencyNumber(name)) {
                    mPrimaryName.setSingleLine(false);
                }
                nameDirection = View.TEXT_DIRECTION_LTR;
            }
            mPrimaryName.setTextDirection(nameDirection);