public void setSuggestions(String[] suggestions) {
        if (suggestions != null && suggestions.length > 0) {
            mTintView.setVisibility(VISIBLE);
            final SearchAdapter adapter = new SearchAdapter(mContext, suggestions, suggestionIcon, ellipsize);
            setAdapter(adapter);

            setOnItemClickListener((parent, view, position, id) -> setQuery((String) adapter.getItem(position), submit));
        } else {
            mTintView.setVisibility(GONE);
        }
    }
Set Adapter for suggestions list with the given suggestion array

@param suggestions array of suggestions
android/third_party/search/src/main/java/com/miguelcatalan/materialsearchview/MaterialSearchView.java