private void hideSuggestionsIfNecessary ( final @ NonNull QueryToken currentQuery , final @ NonNull TokenSource source ) { String queryTS = currentQuery . getTokenString ( ) ; String currentTS = source . getCurrentTokenString ( ) ; if ( ! isWaitingForResults ( currentQuery ) && queryTS != null && queryTS . equals ( currentTS ) ) { mSuggestionsVisibilityManager . displaySuggestions ( false ) ; } }
Hides the suggestions if there are no more incoming queries .