am cec64f46: am da7e72b1: Merge "Fix issue #17492300: NavUtils.shouldUpRecreateTask returns different..." into lmp-dev

* commit 'cec64f466c4010dbf97d00a3fc713b36c82bc42c':
  Fix issue #17492300: NavUtils.shouldUpRecreateTask returns different...
This commit is contained in:
Dianne Hackborn
2014-09-20 00:45:00 +00:00
committed by Android Git Automerger

View File

@@ -2856,7 +2856,8 @@ final class ActivityStack {
// they need to re-create their task if this current activity is the root
// of a document, unless simply finishing it will return them to the the
// correct app behind.
if (srec.frontOfTask && srec.task != null) {
if (srec.frontOfTask && srec.task != null && srec.task.getBaseIntent() != null
&& srec.task.getBaseIntent().isDocument()) {
// Okay, this activity is at the root of its task. What to do, what to do...
if (srec.task.getTaskToReturnTo() != ActivityRecord.APPLICATION_ACTIVITY_TYPE) {
// Finishing won't return to an application, so we need to recreate.