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

Commit 02a54ebd authored by Makoto Onuki's avatar Makoto Onuki
Browse files

Prevent monkey crash with aggregation suggestion popup

Bug 5153029

Change-Id: Ibcedddaf1d2b57e1399e483701fe76c50aec64dd
parent f63c770f
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1340,6 +1340,9 @@ public class ContactEditorFragment extends Fragment implements

        final RawContactEditorView rawContactView =
                (RawContactEditorView)getRawContactEditorView(mAggregationSuggestionsRawContactId);
        if (rawContactView == null) {
            return; // Raw contact deleted?
        }
        final View anchorView = rawContactView.findViewById(R.id.anchor_view);
        mAggregationSuggestionPopup = new ListPopupWindow(mContext, null);
        mAggregationSuggestionPopup.setAnchorView(anchorView);