summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Chris Li <lihongyu@google.com> 2022-07-27 22:28:27 +0800
committer Chris Li <lihongyu@google.com> 2022-07-28 09:10:57 +0800
commita2385ac3994881b58fa06c96387868821ce5c7d8 (patch)
treed9dff84dfb1c1cce285bad7a92d33fb8d0c82a25
parent2553bf5060672305272fb3116e51c1f66586f1b9 (diff)
Update ActivityEmbedding Property Javadoc
Bug: 240387168 Test: Javadoc change only Change-Id: I65d2cbbd5039a3bcc023ad1c344ecff1e0991998
-rw-r--r--core/java/android/view/WindowManager.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/core/java/android/view/WindowManager.java b/core/java/android/view/WindowManager.java
index 70a690c3f264..e56c43e57aa0 100644
--- a/core/java/android/view/WindowManager.java
+++ b/core/java/android/view/WindowManager.java
@@ -824,16 +824,20 @@ public interface WindowManager extends ViewManager {
* provide consent for their app to allow OEMs to manually provide ActivityEmbedding split
* rule configuration on behalf of the app.
*
- * <p>If {@code true}, the system CAN override the windowing behaviors for the app, such as
+ * <p>If {@code true}, the system can override the windowing behaviors for the app, such as
* showing some activities side-by-side. In this case, it will report that ActivityEmbedding
* APIs are disabled for the app to avoid conflict.
*
- * <p>If {@code false}, the system MUST NOT override the window behavior for the app. It should
+ * <p>If {@code false}, the system can't override the window behavior for the app. It should
* be used if the app wants to provide their own ActivityEmbedding split rules, or if the app
* wants to opt-out of system overrides for any other reason.
*
* <p>Default is {@code false}.
*
+ * <p>The system enforcement will be added in Android 14, but some devices may start following
+ * the requirement before that. The best practice for apps is to always explicitly set this
+ * property in AndroidManifest instead of relying on the default value.
+ *
* <p>Example usage:
* <pre>
* &lt;application&gt;