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

Commit 17c97afe authored by android-build-team Robot's avatar android-build-team Robot
Browse files

Snap for 4628106 from 56386270 to pi-release

Change-Id: I718c8e25261a3d6fb07f0d7dceb3a589ab696597
parents e6a484b1 56386270
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -950,8 +950,10 @@ public class ContactEditorFragment extends Fragment implements
        if (isEditingReadOnlyRawContactWithNewContact()) {
            // We created a new raw contact delta with a default display name.
            // We must test for pending changes while ignoring the default display name.
            final ValuesDelta beforeDelta = mState.getByRawContactId(mReadOnlyDisplayNameId)
                    .getSuperPrimaryEntry(StructuredName.CONTENT_ITEM_TYPE);
            final RawContactDelta beforeRawContactDelta = mState
                    .getByRawContactId(mReadOnlyDisplayNameId);
            final ValuesDelta beforeDelta = beforeRawContactDelta == null ? null :
                  beforeRawContactDelta.getSuperPrimaryEntry(StructuredName.CONTENT_ITEM_TYPE);
            final ValuesDelta pendingDelta = mState
                    .getSuperPrimaryEntry(StructuredName.CONTENT_ITEM_TYPE);
            if (structuredNamesAreEqual(beforeDelta, pendingDelta)) {