Add warning to GameSession#setTaskOverlayView's Javadoc.

Bug: 202414447
Bug: 202417255
Test: Documentation only
Change-Id: I595bebb9ffef3970929ebc0468f7864d15bd6873
This commit is contained in:
Tyler Lacey
2022-02-03 16:41:27 +00:00
parent f759b1ebee
commit e1f8fec3f9

View File

@@ -299,6 +299,8 @@ public abstract class GameSession {
* {@code View} may not be cleared once set, but may be replaced by invoking
* {@link #setTaskOverlayView(View, ViewGroup.LayoutParams)} again.
*
* <p><b>WARNING</b>: Callers <b>must</b> ensure that only trusted views are provided.
*
* @param view The desired content to display.
* @param layoutParams Layout parameters for the view.
*/