Fix showing aggregation suggestion
Accidently broke the aggregation anchor view retrieval method.
Now returning the proper anchor view.
Test: Typing a name that would trigger the aggregation suggestion
and seeing the pop-up appear.
Bug: 31575242
Change-Id: I7e20712d89ce58106000cdcf7402aa29b279ce8a
diff --git a/src/com/android/contacts/editor/CompactRawContactsEditorView.java b/src/com/android/contacts/editor/CompactRawContactsEditorView.java
index a20f353..caacc36 100644
--- a/src/com/android/contacts/editor/CompactRawContactsEditorView.java
+++ b/src/com/android/contacts/editor/CompactRawContactsEditorView.java
@@ -547,8 +547,8 @@
}
public View getAggregationAnchorView() {
- CompactKindSectionView nameView = mKindSectionViewMap.get(StructuredName.CONTENT_ITEM_TYPE);
- return nameView != null ? nameView.getChildAt(0).findViewById(R.id.anchor_view) : null;
+ final StructuredNameEditorView nameEditorView = getPrimaryNameEditorView();
+ return nameEditorView != null ? nameEditorView.findViewById(R.id.anchor_view) : null;
}
public void setGroupMetaData(Cursor groupMetaData) {