Merge "Fix frontOfTask assignment."

This commit is contained in:
Craig Mautner
2014-06-23 14:49:08 +00:00
committed by Gerrit Code Review

View File

@@ -173,6 +173,11 @@ final class TaskRecord extends ThumbnailHolder {
foundFront = true;
}
}
if (!foundFront && numActivities > 0) {
// All activities of this task are finishing. As we ought to have a frontOfTask
// activity, make the bottom activity front.
mActivities.get(0).frontOfTask = true;
}
}
/**