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

Commit 3d65ea5f authored by Tingting Wang's avatar Tingting Wang
Browse files

Don't show suggestion card for directory and invisible contacts.

BUG 25680118

Change-Id: I229a7005cee952bebec1de4247d16d8def4b6854
parent 4ec10368
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1396,6 +1396,12 @@ public class QuickContactActivity extends ContactsActivity
            mSuggestionList.removeAllViews();
        }

        // Do not show the card when it's directory contact or invisible.
        if (DirectoryContactUtil.isDirectoryContact(mContactData)
                || InvisibleContactUtil.isInvisibleAndAddable(mContactData, this)) {
            return;
        }

        if (mAggregationSuggestionEngine == null) {
            mAggregationSuggestionEngine = new AggregationSuggestionEngine(this);
            mAggregationSuggestionEngine.setListener(this);