@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 testActionStripAddedForSmartReply() {
    simulateOnStartInputFlow();
    mAnySoftKeyboardUnderTest.onInlineSuggestionsResponse(
        mockResponse(new String[] {"aiai", "smartReply"}, Mockito.mock(InlineContentView.class)));
    ImageView icon =
        mAnySoftKeyboardUnderTest
            .getInputViewContainer()
            .findViewById(R.id.inline_suggestions_strip_icon);
    Assert.assertEquals(
        R.drawable.ic_inline_suggestions_ai_reply,
        Shadows.shadowOf(icon.getDrawable()).getCreatedFromResId());

    mAnySoftKeyboardUnderTest.onInlineSuggestionsResponse(
        mockResponse(new String[] {"smartReply"}, Mockito.mock(InlineContentView.class)));
    icon =
        mAnySoftKeyboardUnderTest
            .getInputViewContainer()
            .findViewById(R.id.inline_suggestions_strip_icon);
    Assert.assertEquals(
        R.drawable.ic_inline_suggestions_ai_reply,
        Shadows.shadowOf(icon.getDrawable()).getCreatedFromResId());
  }