Fix delay_save and multiple required fields.

Fixes: 136120151
Test: atest android.autofillservice.cts.SimpleSaveActivityTest#testDelayedSave
Change-Id: Ie0fd8ef0fbb8457fafc7cb5bed30813abaa0b893

Exempt-From-Owner-Approval: Felipe is no longer with the team
This commit is contained in:
Adam He
2019-06-28 12:40:44 -07:00
committed by Svetoslav Ganov
parent 9dd0c5628b
commit 0df08228be
2 changed files with 2 additions and 0 deletions

View File

@@ -2929,6 +2929,7 @@ final class Session implements RemoteFillService.FillServiceCallbacks, ViewState
if (sVerbose) {
Slog.v(TAG, "Adding autofillable view with id " + id + " and state " + state);
}
viewState.setCurrentValue(findValueLocked(id));
mViewStates.put(id, viewState);
}
if ((state & ViewState.STATE_AUTOFILLED) != 0) {

View File

@@ -227,6 +227,7 @@ final class ViewState {
if (mVirtualBounds != null) {
builder.append(", virtualBounds:" ).append(mVirtualBounds);
}
builder.append("]");
return builder.toString();
}