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

Commit c6e11094 authored by Paul Soulos's avatar Paul Soulos
Browse files

Adds phonetic name to the about card

Bug: 16467163
Change-Id: Ibd989eb1aba58b7991b477839151e4e961fdb8c0
parent c8e2a918
Loading
Loading
Loading
Loading
+20 −0
Original line number Diff line number Diff line
@@ -816,6 +816,26 @@ public class QuickContactActivity extends ContactsActivity {
        Trace.endSection();

        Trace.beginSection("bind about card");
        // Phonetic name is not a data item, so the entry needs to be created separately
        final String phoneticName = mContactData.getPhoneticName();
        if (!TextUtils.isEmpty(phoneticName)) {
            Entry phoneticEntry = new Entry(/* viewId = */ -1,
                    /* icon = */ null,
                    getResources().getString(R.string.name_phonetic),
                    phoneticName,
                    /* text = */ null,
                    /* intent = */ null,
                    /* alternateIcon = */ null,
                    /* alternateIntent = */ null,
                    /* alternateContentDescription = */ null,
                    /* shouldApplyColor = */ false,
                    /* isEditable = */ false
                    );
            List<Entry> phoneticList = new ArrayList<>();
            phoneticList.add(phoneticEntry);
            aboutCardEntries.add(0, phoneticList);
        }

        mAboutCard.initialize(aboutCardEntries,
                /* numInitialVisibleEntries = */ 1,
                /* isExpanded = */ true,