diff options
| author | TYM Tsai <tymtsai@google.com> | 2020-01-17 20:47:31 +0800 |
|---|---|---|
| committer | Joanne Chung <joannechung@google.com> | 2020-01-17 22:02:57 +0800 |
| commit | 64a7dad2dfa1d43aae9b34fec2a2152686877ca5 (patch) | |
| tree | f08ded8003e19d0c43723f3e01cf560608b93770 /core/java | |
| parent | 4b01b414c64a9b21e45bcc25af0e91d5b1db35ae (diff) | |
Updates API on the FillResponse
Renames setCancelTargetIds() to setPresentationCancelIds() on the
FillResponse.
Fixes: 147835554
Test: atest CtsAutoFillServiceTestCases
Change-Id: I3e6d8965fcb5536a75d202506a9d5413847d74cc
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/android/service/autofill/FillResponse.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/java/android/service/autofill/FillResponse.java b/core/java/android/service/autofill/FillResponse.java index 939ae878816a..dc0f5623e5e3 100644 --- a/core/java/android/service/autofill/FillResponse.java +++ b/core/java/android/service/autofill/FillResponse.java @@ -559,8 +559,8 @@ public final class FillResponse implements Parcelable { } /** - * Sets targets with the resources IDs of the child view of - * {@link RemoteViews Presentation Template} which will cancel the session when clicked. + * Sets target resource IDs of the child view in {@link RemoteViews Presentation Template} + * which will cancel the session when clicked. * Those targets will be respectively applied to a child of the header, footer and * each {@link Dataset}. * @@ -571,7 +571,7 @@ public final class FillResponse implements Parcelable { * @throws IllegalStateException if {@link #build()} was already called. */ @NonNull - public Builder setCancelTargetIds(@Nullable int[] ids) { + public Builder setPresentationCancelIds(@Nullable int[] ids) { throwIfDestroyed(); mCancelIds = ids; return this; @@ -769,7 +769,7 @@ public final class FillResponse implements Parcelable { } builder.setFlags(parcel.readInt()); final int[] cancelIds = parcel.createIntArray(); - builder.setCancelTargetIds(cancelIds); + builder.setPresentationCancelIds(cancelIds); final FillResponse response = builder.build(); response.setRequestId(parcel.readInt()); |
