public boolean setSearchFocused ( final boolean focused ) { boolean updatedToNotFocused = ! focused && this . mIsFocused ; if ( ( focused != this . mIsFocused ) && mSuggestionSecHeightListener == null ) { if ( mIsSuggestionsSectionHeightSet ) { setSearchFocusedInternal ( focused ) ; } else { mSuggestionSecHeightListener = new OnSuggestionSecHeightSetListener ( ) { @ Override public void onSuggestionSecHeightSet ( ) { setSearchFocusedInternal ( focused ) ; mSuggestionSecHeightListener = null ; } } ; } } return updatedToNotFocused ; }
Sets whether the search is focused or not .