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

Commit 15a194aa authored by Daniel Lehmann's avatar Daniel Lehmann
Browse files

Promote Position to label (instead of data) if Company name is empty

Bug:2534607

Change-Id: I5e888d6896aa8ad56a56efd5526d90b8afb01278
parent 655236cb
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -939,10 +939,16 @@ public class ViewContactActivity extends Activity
                        final boolean duplicatesTitle =
                            isNameRawContact
                            && mDisplayNameSource == DisplayNameSources.ORGANIZATION
                            && !hasData;
                            && (!hasData || TextUtils.isEmpty(entry.label));

                        if (!duplicatesTitle) {
                            entry.uri = null;

                            if (TextUtils.isEmpty(entry.label)) {
                                entry.label = entry.data;
                                entry.data = "";
                            }

                            mOrganizationEntries.add(entry);
                        }
                    } else if (Nickname.CONTENT_ITEM_TYPE.equals(mimeType) && hasData) {