Skip to content

Commit b2dd4e8

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

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
@@ -2776,7 +2776,8 @@ final int startActivityUncheckedLocked(ActivityRecord r,
27762776
// If the top activity in the task is the root
27772777
// activity, deliver this new intent to it if it
27782778
// desires.
2779-
if ((launchFlags&Intent.FLAG_ACTIVITY_SINGLE_TOP) != 0
2779+
if (((launchFlags&Intent.FLAG_ACTIVITY_SINGLE_TOP) != 0
2780+
|| r.launchMode == ActivityInfo.LAUNCH_SINGLE_TOP)
27802781
&& taskTop.realActivity.equals(r.realActivity)) {
27812782
logStartActivity(EventLogTags.AM_NEW_INTENT, r, taskTop.task);
27822783
if (taskTop.frontOfTask) {

0 commit comments

Comments
 (0)