Loading core/java/android/app/assist/AssistStructure.java +3 −0 Original line number Diff line number Diff line Loading @@ -1051,6 +1051,9 @@ public class AssistStructure implements Parcelable { public void updateAutofillValue(AutofillValue value) { mAutofillValue = value; if (value.isText()) { if (mText == null) { mText = new ViewNodeText(); } mText.mText = value.getTextValue(); } } Loading core/java/android/service/autofill/AutofillService.java +5 −4 Original line number Diff line number Diff line Loading @@ -25,7 +25,6 @@ import android.app.Activity; import android.app.Service; import android.app.assist.AssistStructure; import android.content.Intent; import android.os.Bundle; import android.os.CancellationSignal; import android.os.IBinder; import android.os.ICancellationSignal; Loading @@ -35,9 +34,6 @@ import android.view.autofill.AutofillManager; import com.android.internal.os.SomeArgs; import java.util.ArrayList; import java.util.List; /** * Top-level service of the current autofill service for a given user. * Loading Loading @@ -192,6 +188,11 @@ public abstract class AutofillService extends Service { * {@link SaveCallback#onSuccess()} or {@link SaveCallback#onFailure(CharSequence)}) * to notify the result of the request. * * <p><b>NOTE: </b>to retrieve the actual value of the field, the service should call * {@link android.app.assist.AssistStructure.ViewNode#getAutofillValue()}; if it calls * {@link android.app.assist.AssistStructure.ViewNode#getText()} or other methods, there is no * guarantee such method will return the most recent value of the field. * * @param request the {@link SaveRequest request} to handle. * See {@link FillResponse} for examples of multiple-sections requests. * @param callback object used to notify the result of the request. Loading Loading
core/java/android/app/assist/AssistStructure.java +3 −0 Original line number Diff line number Diff line Loading @@ -1051,6 +1051,9 @@ public class AssistStructure implements Parcelable { public void updateAutofillValue(AutofillValue value) { mAutofillValue = value; if (value.isText()) { if (mText == null) { mText = new ViewNodeText(); } mText.mText = value.getTextValue(); } } Loading
core/java/android/service/autofill/AutofillService.java +5 −4 Original line number Diff line number Diff line Loading @@ -25,7 +25,6 @@ import android.app.Activity; import android.app.Service; import android.app.assist.AssistStructure; import android.content.Intent; import android.os.Bundle; import android.os.CancellationSignal; import android.os.IBinder; import android.os.ICancellationSignal; Loading @@ -35,9 +34,6 @@ import android.view.autofill.AutofillManager; import com.android.internal.os.SomeArgs; import java.util.ArrayList; import java.util.List; /** * Top-level service of the current autofill service for a given user. * Loading Loading @@ -192,6 +188,11 @@ public abstract class AutofillService extends Service { * {@link SaveCallback#onSuccess()} or {@link SaveCallback#onFailure(CharSequence)}) * to notify the result of the request. * * <p><b>NOTE: </b>to retrieve the actual value of the field, the service should call * {@link android.app.assist.AssistStructure.ViewNode#getAutofillValue()}; if it calls * {@link android.app.assist.AssistStructure.ViewNode#getText()} or other methods, there is no * guarantee such method will return the most recent value of the field. * * @param request the {@link SaveRequest request} to handle. * See {@link FillResponse} for examples of multiple-sections requests. * @param callback object used to notify the result of the request. Loading