@Override
    public void onReceiveSuggestionsResult(@NonNull SuggestionsResult result, @NonNull String bucket) {
        List<? extends Suggestible> suggestions = result.getSuggestions();
        adapter = new PersonMentionAdapter(result.getSuggestions());
        recyclerView.swapAdapter(adapter, true);
        boolean display = suggestions != null && suggestions.size() > 0;
        displaySuggestions(display);
    }
@Override
    public void onReceiveSuggestionsResult(@NonNull SuggestionsResult result, @NonNull String bucket) {
        List<? extends Suggestible> suggestions = result.getSuggestions();
        adapter = new PersonMentionAdapter(result.getSuggestions());
        recyclerView.swapAdapter(adapter, true);
        boolean display = suggestions != null && suggestions.size() > 0;
        displaySuggestions(display);
    }
@ Override public void onReceiveSuggestionsResult ( @ NonNull SuggestionsResult result , @ NonNull String bucket ) { List < ? extends Suggestible > suggestions = result . getSuggestions ( ) ; adapter = new PersonMentionAdapter ( result . getSuggestions ( ) ) ; recyclerView . swapAdapter ( adapter , true ) ; boolean display = suggestions != null && suggestions . size ( ) > 0 ; displaySuggestions ( display ) ; }
--------------------------------------------------
--------------------------------------------------