Merge "Send inline actions to IME even when inline suggestions are empty" into rvc-dev am: 1ebbec569e am: f32b75885f am: 9433e57a4e

Change-Id: I5ea46ffd284b3801b3214c66d829851a5d782e4d
This commit is contained in:
Automerger Merge Worker
2020-03-10 22:44:26 +00:00
2 changed files with 2 additions and 3 deletions

View File

@@ -2681,7 +2681,7 @@ final class Session implements RemoteFillService.FillServiceCallbacks, ViewState
response, filterText, response.getInlineActions(), mCurrentViewId,
this, () -> {
synchronized (mLock) {
requestHideFillUi(mCurrentViewId);
mInlineSuggestionSession.hideInlineSuggestionsUi(mCurrentViewId);
}
}, remoteRenderService);
if (inlineSuggestionsResponse == null) {

View File

@@ -167,8 +167,7 @@ public final class InlineSuggestionFactory {
inlineSuggestions.add(inlineSuggestion);
}
// We should only add inline actions if there is at least one suggestion.
if (!inlineSuggestions.isEmpty() && inlineActions != null) {
if (inlineActions != null) {
for (InlineAction inlineAction : inlineActions) {
final InlineSuggestion inlineActionSuggestion = createInlineAction(isAugmented,
mergedInlinePresentation(request, 0, inlineAction.getInlinePresentation()),