code: 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;
      }
docs: Sets whether the search is focused or not.
  
  @param focused true, to set the search to be active/focused.
  @return true if the search was focused and will now become not focused. Useful for
  calling supper.onBackPress() in the hosting activity only if this method returns false