Merge "Prevent showing FillUi multiple times if tapping on the same field."

This commit is contained in:
Joanne Chung
2019-08-28 06:01:19 +00:00
committed by Android (Google) Code Review

View File

@@ -2419,6 +2419,7 @@ final class Session implements RemoteFillService.FillServiceCallbacks, ViewState
Slog.v(TAG, "entered on virtual child " + id + ": " + virtualBounds);
}
final boolean isSameViewEntered = Objects.equals(mCurrentViewId, viewState.id);
// Update the view states first...
mCurrentViewId = viewState.id;
if (value != null) {
@@ -2451,6 +2452,10 @@ final class Session implements RemoteFillService.FillServiceCallbacks, ViewState
hideAugmentedAutofillLocked(viewState);
}
if (isSameViewEntered) {
return;
}
// If the ViewState is ready to be displayed, onReady() will be called.
viewState.update(value, virtualBounds, flags);
break;