summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/src/com/android/systemui/recent
diff options
context:
space:
mode:
authorAmith Yamasani <yamasani@google.com>2012-08-28 15:49:06 -0700
committerAmith Yamasani <yamasani@google.com>2012-08-28 15:49:06 -0700
commitd2e99565f5377a9afa839eab738b10e7b5e0a761 (patch)
tree43e6c16ac099404c36b3b1c80aad0f6c963b0d4c /packages/SystemUI/src/com/android/systemui/recent
parent70574efd8f7105eb73a6ffe31992ed3c5971c8cc (diff)
downloadframeworks_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/com/android/systemui/recent')
-rw-r--r--packages/SystemUI/src/com/android/systemui/recent/RecentTasksLoader.java3
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);