diff options
| author | Craig Mautner <cmautner@google.com> | 2013-04-23 17:08:34 -0700 |
|---|---|---|
| committer | Craig Mautner <cmautner@google.com> | 2013-04-23 19:33:42 -0700 |
| commit | 858d8a6583b0c91c66960167b84c67b6c4e2d3c6 (patch) | |
| tree | 7aaf135ec6c0cd770f3d15372a7f662f09d6fa6f /services/java/com/android/server/am/ActivityStack.java | |
| parent | cf910b0c714b2ca90ea0013e5695850506a1d36f (diff) | |
| download | frameworks_base-858d8a6583b0c91c66960167b84c67b6c4e2d3c6.zip frameworks_base-858d8a6583b0c91c66960167b84c67b6c4e2d3c6.tar.gz frameworks_base-858d8a6583b0c91c66960167b84c67b6c4e2d3c6.tar.bz2 | |
Fix user switching.
- Save and restore WindowManager stack states.
- Maintain ActivityManager activity states based on the stack
the activity is in.
Fixes bug 8646641.
Change-Id: I16c76c7708ab49121c3884a7e5bf219898b92d3f
Diffstat (limited to 'services/java/com/android/server/am/ActivityStack.java')
| -rw-r--r-- | services/java/com/android/server/am/ActivityStack.java | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/services/java/com/android/server/am/ActivityStack.java b/services/java/com/android/server/am/ActivityStack.java index 3557e90..3758bb1 100644 --- a/services/java/com/android/server/am/ActivityStack.java +++ b/services/java/com/android/server/am/ActivityStack.java @@ -234,7 +234,7 @@ final class ActivityStack { int mThumbnailWidth = -1; int mThumbnailHeight = -1; - private int mCurrentUser; + int mCurrentUser; final int mStackId; @@ -576,7 +576,8 @@ final class ActivityStack { } /* - * Move the activities around in the stack to bring a user to the foreground. + * Move the activities around in the stack to bring a user to the foreground. This only + * matters on the home stack. All other stacks are single user. * @return whether there are any activities for the specified user. */ final boolean switchUserLocked(int userId, UserStartedState uss) { @@ -602,9 +603,6 @@ final class ActivityStack { } } - // task is now the original topmost TaskRecord. Transition from the old top to the new top. - ActivityRecord top = task != null ? task.getTopActivity() : null; - resumeTopActivityLocked(top); return haveActivities; } @@ -1718,7 +1716,7 @@ final class ActivityStack { } if (doResume) { - mStackSupervisor.resumeTopActivityLocked(); + mStackSupervisor.resumeTopActivitiesLocked(); } } |
