diff options
| author | Pierre Barbier de Reuille <pbdr@google.com> | 2021-03-30 12:54:10 +0100 |
|---|---|---|
| committer | Pierre Barbier de Reuille <pbdr@google.com> | 2021-03-30 12:54:10 +0100 |
| commit | 521e9648f847898ed212eff8a20414886d664ca8 (patch) | |
| tree | ff76a1e680d1534f576c7a1b01b9b038d6a8e5a9 /core/java/android | |
| parent | 744b9f18fd0432e6ee6e438358bd213f708b795c (diff) | |
Update the description of RemoteViews#setViewId
This is a request of the API Council (see bug for justification).
Fix: 182824754
Test: N/A
Change-Id: I82e373272c3e2261b7f42f59eb37b10c487ce55e
Diffstat (limited to 'core/java/android')
| -rw-r--r-- | core/java/android/widget/RemoteViews.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/java/android/widget/RemoteViews.java b/core/java/android/widget/RemoteViews.java index cb2bba1846c5..29c78b54b64d 100644 --- a/core/java/android/widget/RemoteViews.java +++ b/core/java/android/widget/RemoteViews.java @@ -6342,6 +6342,9 @@ public class RemoteViews implements Parcelable, Filter { /** * Set the ID of the top-level view of the XML layout. * + * The view's ID is changed right after inflation, before it gets added to its parent. The ID + * of a given view can never change after the initial inflation. + * * Set to {@link View#NO_ID} to reset and simply keep the id defined in the XML layout. * * @throws UnsupportedOperationException if the method is called on a RemoteViews defined in |
