Skip to content

Commit 862c383

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

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)