Merge "Send empty inline response to IME if augmented autofill returns no suggestion" into rvc-dev am: b9aeb6ca22
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11784240 Change-Id: I4b30f747b6f3c352df5e13414a2a1d6bb72e12d4
This commit is contained in:
@@ -62,9 +62,10 @@ public final class FillCallback {
|
||||
|
||||
List<Dataset> inlineSuggestions = response.getInlineSuggestions();
|
||||
Bundle clientState = response.getClientState();
|
||||
// We need to report result regardless of whether inline suggestions are returned or not.
|
||||
mProxy.reportResult(inlineSuggestions, clientState);
|
||||
if (inlineSuggestions != null && !inlineSuggestions.isEmpty()) {
|
||||
mProxy.logEvent(AutofillProxy.REPORT_EVENT_INLINE_RESPONSE);
|
||||
mProxy.reportResult(inlineSuggestions, clientState);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user