@RequiresApi(Build.VERSION_CODES.R)
  @Override
  public boolean onInlineSuggestionsResponse(@NonNull InlineSuggestionsResponse response) {
    final List<InlineSuggestion> inlineSuggestions = response.getInlineSuggestions();

    if (inlineSuggestions.size() > 0) {
      mInlineSuggestionAction.onNewSuggestions(inlineSuggestions);
      getInputViewContainer().addStripAction(mInlineSuggestionAction, true);
      getInputViewContainer().setActionsStripVisibility(true);
    }

    return !inlineSuggestions.isEmpty();
  }
@Test
  public void testShowsSuggestionsOnClickAction() {
    simulateOnStartInputFlow();
    var inlineView1 = Mockito.mock(InlineContentView.class);
    var inlineView2 = Mockito.mock(InlineContentView.class);
    mAnySoftKeyboardUnderTest.onInlineSuggestionsResponse(mockResponse(inlineView1, inlineView2));
    var rootView =
        mAnySoftKeyboardUnderTest
            .getInputViewContainer()
            .findViewById(R.id.inline_suggestions_strip_root);
    TextView countText =
        mAnySoftKeyboardUnderTest
            .getInputViewContainer()
            .findViewById(R.id.inline_suggestions_strip_text);
    Assert.assertEquals("2", countText.getText().toString());

    Assert.assertNull(
        mAnySoftKeyboardUnderTest
            .getInputViewContainer()
            .findViewById(R.id.inline_suggestions_list));

    Shadows.shadowOf(rootView).getOnClickListener().onClick(rootView);
    // removed icon from action strip
    Assert.assertNull(
        mAnySoftKeyboardUnderTest
            .getInputViewContainer()
            .findViewById(R.id.inline_suggestions_strip_root));

    var scroller =
        (ScrollViewAsMainChild)
            mAnySoftKeyboardUnderTest
                .getInputViewContainer()
                .findViewById(R.id.inline_suggestions_list);
    Assert.assertNotNull(scroller);
    Assert.assertEquals(2, scroller.getItemsCount());

    Assert.assertEquals(
        View.GONE, ((View) mAnySoftKeyboardUnderTest.getInputView()).getVisibility());
  }