Loading services/autofill/java/com/android/server/autofill/Session.java +18 −4 Original line number Diff line number Diff line Loading @@ -1438,6 +1438,19 @@ final class Session implements RemoteFillService.FillServiceCallbacks, ViewState final AutofillValue filledValue = viewState.getAutofilledValue(); if (!value.equals(filledValue)) { boolean changed = true; if (filledValue == null) { // Dataset was not autofilled, make sure initial value didn't change. final AutofillValue initialValue = getValueFromContextsLocked(id); if (initialValue != null && initialValue.equals(value)) { if (sDebug) { Slog.d(TAG, "id " + id + " is part of dataset but initial value " + "didn't change: " + value); } changed = false; } } if (changed) { if (sDebug) { Slog.d(TAG, "found a change on required " + id + ": " + filledValue + " => " + value); Loading @@ -1446,6 +1459,7 @@ final class Session implements RemoteFillService.FillServiceCallbacks, ViewState } } } } final AutofillId[] optionalIds = saveInfo.getOptionalIds(); if (allRequiredAreNotEmpty) { Loading Loading
services/autofill/java/com/android/server/autofill/Session.java +18 −4 Original line number Diff line number Diff line Loading @@ -1438,6 +1438,19 @@ final class Session implements RemoteFillService.FillServiceCallbacks, ViewState final AutofillValue filledValue = viewState.getAutofilledValue(); if (!value.equals(filledValue)) { boolean changed = true; if (filledValue == null) { // Dataset was not autofilled, make sure initial value didn't change. final AutofillValue initialValue = getValueFromContextsLocked(id); if (initialValue != null && initialValue.equals(value)) { if (sDebug) { Slog.d(TAG, "id " + id + " is part of dataset but initial value " + "didn't change: " + value); } changed = false; } } if (changed) { if (sDebug) { Slog.d(TAG, "found a change on required " + id + ": " + filledValue + " => " + value); Loading @@ -1446,6 +1459,7 @@ final class Session implements RemoteFillService.FillServiceCallbacks, ViewState } } } } final AutofillId[] optionalIds = saveInfo.getOptionalIds(); if (allRequiredAreNotEmpty) { Loading