Automated import from //branches/master/...@142240,142240
This commit is contained in:
committed by
The Android Open Source Project
parent
3e7b3c0f27
commit
18523b6f31
@@ -5992,7 +5992,7 @@ public final class ActivityManagerService extends ActivityManagerNative implemen
|
||||
final boolean clearWhenTaskReset =
|
||||
(target.intent.getFlags()
|
||||
&Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET) != 0;
|
||||
if (!finishOnTaskLaunch && target.resultTo != null) {
|
||||
if (!finishOnTaskLaunch && !clearWhenTaskReset && target.resultTo != null) {
|
||||
// If this activity is sending a reply to a previous
|
||||
// activity, we can't do anything with it now until
|
||||
// we reach the start of the reply chain.
|
||||
@@ -6002,7 +6002,7 @@ public final class ActivityManagerService extends ActivityManagerNative implemen
|
||||
if (replyChainEnd < 0) {
|
||||
replyChainEnd = targetI;
|
||||
}
|
||||
} else if (!finishOnTaskLaunch && allowTaskReparenting
|
||||
} else if (!finishOnTaskLaunch && !clearWhenTaskReset && allowTaskReparenting
|
||||
&& target.taskAffinity != null
|
||||
&& !target.taskAffinity.equals(task.affinity)) {
|
||||
// If this activity has an affinity for another
|
||||
|
||||
Reference in New Issue
Block a user