OSDN Git Service

Fix incorrect setting of TaskRecord.frontOfTask DO NOT MERGE
authorCraig Mautner <cmautner@google.com>
Mon, 16 Dec 2013 23:58:31 +0000 (15:58 -0800)
committerCraig Mautner <cmautner@google.com>
Tue, 17 Dec 2013 00:56:19 +0000 (16:56 -0800)
commit3b475fefa3b83ce49454936a0be3081753e3e8ad
treee7e614628b44de4e8cc41181351980182d8dd807
parentb8928b05932f9592cfeeb9c3cdc96c4066de2d55
Fix incorrect setting of TaskRecord.frontOfTask DO NOT MERGE

When Intent.FLAG_ACTIVITY_REORDER_TO_FRONT was set the TaskRecord
member frontOfTask was being set true incorrectly for the top
activity. It should only be true for the bottom activity. This fix
ensures that frontOfTask is always set correctly for all activities by
consoldating it into one method.

Fixes bug 12171535.

Change-Id: If982dad3c81b2b816adc5d89e7e0496923098a70
services/java/com/android/server/am/ActivityStack.java
services/java/com/android/server/am/TaskRecord.java