From a46d36240b08e458fb25fb1231ed3ebd4a618c3a Mon Sep 17 00:00:00 2001 From: Winson Chung Date: Fri, 17 Dec 2021 07:50:46 +0000 Subject: [PATCH] Add logs for null task list Bug: 206648922 Test: Adding logs Change-Id: I23b8a9fadd1e555f1c3f7a75940bd7faa56b777b --- quickstep/src/com/android/quickstep/SystemUiProxy.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/quickstep/src/com/android/quickstep/SystemUiProxy.java b/quickstep/src/com/android/quickstep/SystemUiProxy.java index 67e7f88c33..a34343888d 100644 --- a/quickstep/src/com/android/quickstep/SystemUiProxy.java +++ b/quickstep/src/com/android/quickstep/SystemUiProxy.java @@ -34,6 +34,7 @@ import android.os.IBinder.DeathRecipient; import android.os.RemoteException; import android.os.UserHandle; import android.util.Log; +import android.util.Slog; import android.view.MotionEvent; import android.view.RemoteAnimationAdapter; import android.view.RemoteAnimationTarget; @@ -760,8 +761,10 @@ public class SystemUiProxy implements ISystemUiProxy, public ArrayList getRecentTasks(int numTasks, int userId) { if (mRecentTasks != null) { try { - return new ArrayList<>(Arrays.asList(mRecentTasks.getRecentTasks(numTasks, - RECENT_IGNORE_UNAVAILABLE, userId))); + final GroupedRecentTaskInfo[] tasks = mRecentTasks.getRecentTasks(numTasks, + RECENT_IGNORE_UNAVAILABLE, userId); + Log.d("b/206648922", "getRecentTasks(" + numTasks + "): result=" + tasks); + return new ArrayList<>(Arrays.asList(tasks)); } catch (RemoteException e) { Log.w(TAG, "Failed call getRecentTasks", e); }