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

Commit 3668b6fa authored by Tingting Wang's avatar Tingting Wang Committed by android-build-merger
Browse files

Don\'t show suggestion card for directory and invisible contacts. am: 3d65ea5f

am: 5e55e7cf

* commit '5e55e7cf':
  Don't show suggestion card for directory and invisible contacts.
parents 40d34b5a 5e55e7cf
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);