From 521e9648f847898ed212eff8a20414886d664ca8 Mon Sep 17 00:00:00 2001 From: Pierre Barbier de Reuille Date: Tue, 30 Mar 2021 12:54:10 +0100 Subject: 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 --- core/java/android/widget/RemoteViews.java | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit v1.2.3-59-g8ed1b