Attach aggregation listener to super primary name field
Bug 21435555
Change-Id: I03bb5ee5650491338192796cd8fc132af50a5ce8
diff --git a/src/com/android/contacts/editor/CompactRawContactsEditorView.java b/src/com/android/contacts/editor/CompactRawContactsEditorView.java
index 36502e2..88dd969 100644
--- a/src/com/android/contacts/editor/CompactRawContactsEditorView.java
+++ b/src/com/android/contacts/editor/CompactRawContactsEditorView.java
@@ -369,8 +369,10 @@
rawContactDelta, StructuredName.CONTENT_ITEM_TYPE, dataKind);
if (superPrimaryValuesDelta != null) {
// Our first preference is for a non-empty super primary name
+ final NameEditorListener nameEditorListener = new NameEditorListener(
+ superPrimaryValuesDelta, rawContactDelta.getRawContactId(), mListener);
mNames.addView(inflateStructuredNameEditorView(mNames, accountType,
- superPrimaryValuesDelta, rawContactDelta, /* nameEditorListener =*/ null));
+ superPrimaryValuesDelta, rawContactDelta, nameEditorListener));
return;
}
}