From 2bb931237e5f5fe4b98b3e003851d1a6b6eb4878 Mon Sep 17 00:00:00 2001 From: Sumedh Sen Date: Fri, 12 May 2023 00:35:48 -0700 Subject: [PATCH] Replacing overlapping flag value FLAG_IGNORE_EPHEMERAL shared its value with FLAG_ACTIVITY_REQUIRE_DEFAULT which was problematic since these flags were used or checked together in a few cases. A short term solution was to replace the value of FLAG_IGNORE_EPHEMERAL with another flag value - FLAG_RECEIVER_OFFLOAD - which isnot used with the former flag. This will be revisited in the future, with a concrete solution, since there are no 32bit flags left in Intent.java. Bug: b/269674648 Test: None Change-Id: I9e3d282bb12a630d0a170871fe8e2da5d259ad57 --- core/java/android/content/Intent.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/java/android/content/Intent.java b/core/java/android/content/Intent.java index 307f30619be24..e763e951fbc12 100644 --- a/core/java/android/content/Intent.java +++ b/core/java/android/content/Intent.java @@ -6907,7 +6907,7 @@ public class Intent implements Parcelable, Cloneable { * * @hide */ - public static final int FLAG_IGNORE_EPHEMERAL = 0x00000200; + public static final int FLAG_IGNORE_EPHEMERAL = 0x80000000; /** * If set, the new activity is not kept in the history stack. As soon as