Log recents listener when dumping

Bug: 242377577
Test: dumpsys activity service SystemUIService WMShell
Change-Id: I4fcb7e42cf128558c0a4340291dcc21d7a4c4bb3
This commit is contained in:
Winson Chung
2022-12-05 05:23:06 +00:00
parent eee35ec5e0
commit b12c9da65e

View File

@@ -367,6 +367,8 @@ public class RecentTasksController implements TaskStackListenerCallback,
public void dump(@NonNull PrintWriter pw, String prefix) {
final String innerPrefix = prefix + " ";
pw.println(prefix + TAG);
pw.println(prefix + " mListener=" + mListener);
pw.println(prefix + "Tasks:");
ArrayList<GroupedRecentTaskInfo> recentTasks = getRecentTasks(Integer.MAX_VALUE,
ActivityManager.RECENT_IGNORE_UNAVAILABLE, ActivityManager.getCurrentUser());
for (int i = 0; i < recentTasks.size(); i++) {