diff options
author | Amith Yamasani <yamasani@google.com> | 2012-08-28 15:49:06 -0700 |
---|---|---|
committer | Amith Yamasani <yamasani@google.com> | 2012-08-28 15:49:06 -0700 |
commit | d2e99565f5377a9afa839eab738b10e7b5e0a761 (patch) | |
tree | 43e6c16ac099404c36b3b1c80aad0f6c963b0d4c /packages/SystemUI/src | |
parent | 70574efd8f7105eb73a6ffe31992ed3c5971c8cc (diff) | |
download | frameworks_base-d2e99565f5377a9afa839eab738b10e7b5e0a761.zip frameworks_base-d2e99565f5377a9afa839eab738b10e7b5e0a761.tar.gz frameworks_base-d2e99565f5377a9afa839eab738b10e7b5e0a761.tar.bz2 |
Fix recents list for multiuser
Since the Recents is now an activity running in the respective user's sandbox,
it shouldn't use the special API to get the current user's recent tasks.
Otherwise it causes all users to fetch the state of the current foreground user
instead of their own recents.
Change-Id: Ice8c2978e6a7ae71c44666c79a19ac07a2cbea1b
Diffstat (limited to 'packages/SystemUI/src')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/recent/RecentTasksLoader.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/recent/RecentTasksLoader.java b/packages/SystemUI/src/com/android/systemui/recent/RecentTasksLoader.java index 4281ccf..2a225d9 100644 --- a/packages/SystemUI/src/com/android/systemui/recent/RecentTasksLoader.java +++ b/packages/SystemUI/src/com/android/systemui/recent/RecentTasksLoader.java @@ -337,8 +337,7 @@ public class RecentTasksLoader implements View.OnTouchListener { mContext.getSystemService(Context.ACTIVITY_SERVICE); final List<ActivityManager.RecentTaskInfo> recentTasks = - am.getRecentTasksForUser(MAX_TASKS, - ActivityManager.RECENT_IGNORE_UNAVAILABLE, UserHandle.USER_CURRENT); + am.getRecentTasks(MAX_TASKS, ActivityManager.RECENT_IGNORE_UNAVAILABLE); int numTasks = recentTasks.size(); ActivityInfo homeInfo = new Intent(Intent.ACTION_MAIN) .addCategory(Intent.CATEGORY_HOME).resolveActivityInfo(pm, 0); |