Merge "Prevent showing FillUi multiple times if tapping on the same field."
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user