OSDN Git Service

Clear last paused activity.
authorCraig Mautner <cmautner@google.com>
Mon, 5 Aug 2013 23:14:22 +0000 (16:14 -0700)
committerCraig Mautner <cmautner@google.com>
Mon, 5 Aug 2013 23:14:22 +0000 (16:14 -0700)
commitf140fd9cef0ad2a522ad0edd852f763003933338
tree3a97fb573266fca497f51ad9f906be5d7665e34c
parentf239d9d7bb15fbdbe026835d5ee6b0c91d3ac5f0
Clear last paused activity.

Moving an activity to the back used to move it behind the launcher.
This meant that the test in resumeTopActivityLocked() for
mLastPausedActivity being equal to the top activity would fail after
moveTaskToBack(). In the new activity stack model the launcher is
on a different stack so if there is only one task then the test
now passes. Clearing mLastPausedActivity when moving an activity
forward now passes the test.

Fixes bug 10022212.

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