summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Issei Suzuki <issei@google.com> 2022-01-27 14:36:27 +0000
committer Issei Suzuki <issei@google.com> 2022-02-03 10:29:26 +0000
commit1eaedb4bafc8d3fca79421435c23ac9d271f60ae (patch)
treec08e386dac30337a421bbada502d676969e518e7
parent1cb1b98f1e51a81be81419963e798886de3a8455 (diff)
Add comment for locking down custom task animation.
Bug: 162066454 Test: N/A, comment change only Change-Id: Ie014c70cf5253dc6107d2da10414278e36f9bd08
-rw-r--r--core/java/android/app/Activity.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/java/android/app/Activity.java b/core/java/android/app/Activity.java
index 530666b8f1d7..e6b154bd6a2e 100644
--- a/core/java/android/app/Activity.java
+++ b/core/java/android/app/Activity.java
@@ -6139,6 +6139,10 @@ public class Activity extends ContextThemeWrapper
* you to specify a custom animation even when starting an activity from
* outside the context of the current top activity.
*
+ * <p>Af of {@link android.os.Build.VERSION_CODES#S} application can only specify
+ * a transition animation when the transition happens within the same task. System
+ * default animation is used for cross-task transition animations.
+ *
* @param enterAnim A resource ID of the animation resource to use for
* the incoming activity. Use 0 for no animation.
* @param exitAnim A resource ID of the animation resource to use for