Skip to content

Commit 7af0c16

Browse files
Amith YamasaniAndroid (Google) Code Review
authored andcommitted
Merge "Fix recents list for multiuser" into jb-mr1-dev
2 parents c3815a5 + d2e9956 commit 7af0c16

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/SystemUI/src/com/android/systemui/recent/RecentTasksLoader.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,8 +337,7 @@ protected Void doInBackground(Void... params) {
337337
mContext.getSystemService(Context.ACTIVITY_SERVICE);
338338

339339
final List<ActivityManager.RecentTaskInfo> recentTasks =
340-
am.getRecentTasksForUser(MAX_TASKS,
341-
ActivityManager.RECENT_IGNORE_UNAVAILABLE, UserHandle.USER_CURRENT);
340+
am.getRecentTasks(MAX_TASKS, ActivityManager.RECENT_IGNORE_UNAVAILABLE);
342341
int numTasks = recentTasks.size();
343342
ActivityInfo homeInfo = new Intent(Intent.ACTION_MAIN)
344343
.addCategory(Intent.CATEGORY_HOME).resolveActivityInfo(pm, 0);

0 commit comments

Comments
 (0)