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

Commit 469a70fe authored by Tingting Wang's avatar Tingting Wang
Browse files

Show phonetic name only when it doesn't equal display name.

BUG 27549690

Change-Id: I21022c4d7516668f217326aaa2f825ad1d8d7ec5
parent a07c90b6
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1241,8 +1241,8 @@ public class QuickContactActivity extends ContactsActivity
                displayName, mContactData.getDisplayNameSource() == DisplayNameSources.PHONE);
        final String phoneticName = ContactDisplayUtils.getPhoneticName(this, data);
        if (mScroller != null) {
            if (mContactData.getDisplayNameSource() != DisplayNameSources.STRUCTURED_PHONETIC_NAME
                    && !TextUtils.isEmpty(phoneticName)) {
            // Show phonetic name only when it doesn't equal the display name.
            if (!TextUtils.isEmpty(phoneticName) && !phoneticName.equals(displayName)) {
                mScroller.setPhoneticName(phoneticName);
            } else {
                mScroller.setPhoneticNameGone();