From b7080e35b720aec68cf4771637f46d9f6e1c7d66 Mon Sep 17 00:00:00 2001 From: Patrick Baumann Date: Mon, 9 Apr 2018 14:46:21 -0700 Subject: [PATCH] Fixes task behavior on AIA launch This change allows the instant app installer to launch on which ever task it is being called from, resulting in the sucess intent launching using the flags the original caller intended and avoiding breaking the flow when the installer is required. Bug: 62872137 Test: manual - prototype installer no longer results in double tasks Change-Id: I9e84ec89bc4bcb3c890bda8332d4110ac231382d --- .../core/java/com/android/server/pm/InstantAppResolver.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/services/core/java/com/android/server/pm/InstantAppResolver.java b/services/core/java/com/android/server/pm/InstantAppResolver.java index bc9fa4b7e32b1..dbf0940fb4f57 100644 --- a/services/core/java/com/android/server/pm/InstantAppResolver.java +++ b/services/core/java/com/android/server/pm/InstantAppResolver.java @@ -256,8 +256,6 @@ public abstract class InstantAppResolver { int flags = origIntent.getFlags(); final Intent intent = new Intent(); intent.setFlags(flags - | Intent.FLAG_ACTIVITY_NEW_TASK - | Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_NO_HISTORY | Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS); if (token != null) {