Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c9c617f8 authored by Nikita Dubrovsky's avatar Nikita Dubrovsky
Browse files

Javadoc URI permissions handling on Dataset.setContent

Fix: 178715049
Test: Build (javadoc-only change)
Change-Id: Ia5f24520f514ac4862186798d26aaa47d81c94ca
parent d560996d
Loading
Loading
Loading
Loading
+8 −0
Original line number Original line Diff line number Diff line
@@ -445,6 +445,14 @@ public final class Dataset implements Parcelable {
         * <p>For a given field, either a {@link AutofillValue value} or content can be filled, but
         * <p>For a given field, either a {@link AutofillValue value} or content can be filled, but
         * not both. Furthermore, when filling content, only a single field can be filled.
         * not both. Furthermore, when filling content, only a single field can be filled.
         *
         *
         * <p>The provided {@link ClipData} can contain content URIs (e.g. a URI for an image).
         * The augmented autofill provider setting the content here must itself have at least
         * read permissions to any passed content URIs. If the user accepts the suggestion backed
         * by the content URI(s), the platform will automatically grant read URI permissions to
         * the app being autofilled, just before passing the content URI(s) to it. The granted
         * permissions will be transient and tied to the lifecycle of the activity being filled
         * (when the activity finishes, permissions will automatically be revoked by the platform).
         *
         * @param id id returned by
         * @param id id returned by
         * {@link android.app.assist.AssistStructure.ViewNode#getAutofillId()}.
         * {@link android.app.assist.AssistStructure.ViewNode#getAutofillId()}.
         * @param content content to be autofilled. Pass {@code null} if you do not have the content
         * @param content content to be autofilled. Pass {@code null} if you do not have the content