Skip to content

Commit 1a907db

Browse files
Dianne HackbornAndroid Git Automerger
authored andcommitted
am 862c383: am 4b60a8d: Merge "Added check of ActivityInfo launch mode when starting activity."
* commit '862c383530d64e6c493fb519f567dd5778d9d48c': Added check of ActivityInfo launch mode when starting activity.
2 parents 30b5bea + 862c383 commit 1a907db

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

services/java/com/android/server/am/ActivityStack.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2762,7 +2762,8 @@ final int startActivityUncheckedLocked(ActivityRecord r,
27622762
// If the top activity in the task is the root
27632763
// activity, deliver this new intent to it if it
27642764
// desires.
2765-
if ((launchFlags&Intent.FLAG_ACTIVITY_SINGLE_TOP) != 0
2765+
if (((launchFlags&Intent.FLAG_ACTIVITY_SINGLE_TOP) != 0
2766+
|| r.launchMode == ActivityInfo.LAUNCH_SINGLE_TOP)
27662767
&& taskTop.realActivity.equals(r.realActivity)) {
27672768
logStartActivity(EventLogTags.AM_NEW_INTENT, r, taskTop.task);
27682769
if (taskTop.frontOfTask) {

0 commit comments

Comments
 (0)