code: @Override
      public void displaySuggestions(boolean display) {
          if (display) {
              recyclerView.setVisibility(RecyclerView.VISIBLE);
          } else {
              recyclerView.setVisibility(RecyclerView.GONE);
          }
      }
docs: --------------------------------------------------