From fad3a83a93a35ec886ccd3e5dfea206c112b43bc Mon Sep 17 00:00:00 2001 From: Felipe Leme Date: Thu, 8 Jun 2017 18:50:05 -0700 Subject: [PATCH] Minor fix on autofill() javadoc. Bug: 62465574 Test: N/A Change-Id: I4a55b4064a8af835e962a77c6ad55a29c1954efd --- core/java/android/view/View.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/core/java/android/view/View.java b/core/java/android/view/View.java index a9c85f0e1488c..94b2fbf5f3294 100644 --- a/core/java/android/view/View.java +++ b/core/java/android/view/View.java @@ -7676,7 +7676,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, * } * * - *

If the value is updated asynchronously the next call to + *

If the value is updated asynchronously, the next call to * {@link AutofillManager#notifyValueChanged(View)} must happen after the value was * changed to the autofilled value. If not, the view will not be considered autofilled. * @@ -7698,6 +7698,11 @@ public class View implements Drawable.Callback, KeyEvent.Callback, * former, this method is responsible for the latter - see {@link #autofill(AutofillValue)} and * {@link #onProvideAutofillVirtualStructure(ViewStructure, int)} for more info about autofill. * + *

If a child value is updated asynchronously, the next call to + * {@link AutofillManager#notifyValueChanged(View, int, AutofillValue)} must happen + * after the value was changed to the autofilled value. If not, the child will not be + * considered autofilled. + * *

NOTE: to indicate that a virtual view was autofilled, * ?android:attr/autofilledHighlight should be drawn over it until the data * changes.