From 6bdf257d4343e4208071d52f2e1b639d9f3af52d Mon Sep 17 00:00:00 2001 From: Wale Ogunwale Date: Fri, 11 Mar 2016 15:22:38 -0800 Subject: [PATCH] Added more info to FLAG_ACTIVITY_LAUNCH_ADJACENT documentation Developers need to add FLAG_ACTIVITY_MULTIPLE_TASK flag if they don't want an existing instance of their activity to be used. Bug: 27604971 Change-Id: I80791ba9b8a68e4ffcf7a5b9a963f27239071037 --- core/java/android/content/Intent.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/java/android/content/Intent.java b/core/java/android/content/Intent.java index 09fa5e11829bf..182475ff6da48 100644 --- a/core/java/android/content/Intent.java +++ b/core/java/android/content/Intent.java @@ -4560,7 +4560,8 @@ public class Intent implements Parcelable, Cloneable { /** * This flag is only used in split-screen multi-window mode. The new activity will be displayed * adjacent to the one launching it. This can only be used in conjunction with - * {@link #FLAG_ACTIVITY_NEW_TASK}. + * {@link #FLAG_ACTIVITY_NEW_TASK}. Also, setting {@link #FLAG_ACTIVITY_MULTIPLE_TASK} is + * required if you want a new instance of an existing activity to be created. */ public static final int FLAG_ACTIVITY_LAUNCH_ADJACENT = 0x00001000;