Merge "Don't compare intent filters on singleTask adjacent launch" into nyc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
42147f0ff3
@@ -1425,7 +1425,8 @@ class ActivityStarter {
|
|||||||
} else if ((mLaunchFlags & FLAG_ACTIVITY_LAUNCH_ADJACENT) != 0) {
|
} else if ((mLaunchFlags & FLAG_ACTIVITY_LAUNCH_ADJACENT) != 0) {
|
||||||
// For the launch adjacent case we only want to put the activity in an existing
|
// For the launch adjacent case we only want to put the activity in an existing
|
||||||
// task if the activity already exists in the history.
|
// task if the activity already exists in the history.
|
||||||
intentActivity = mSupervisor.findActivityLocked(mIntent, mStartActivity.info, true);
|
intentActivity = mSupervisor.findActivityLocked(mIntent, mStartActivity.info,
|
||||||
|
!mLaunchSingleTask);
|
||||||
} else {
|
} else {
|
||||||
// Otherwise find the best task to put the activity in.
|
// Otherwise find the best task to put the activity in.
|
||||||
intentActivity = mSupervisor.findTaskLocked(mStartActivity);
|
intentActivity = mSupervisor.findTaskLocked(mStartActivity);
|
||||||
|
|||||||
Reference in New Issue
Block a user