Merge "Revert "Add logs for null task list"" into sc-v2-dev

This commit is contained in:
Winson Chung 2022-01-12 23:00:00 +00:00 committed by Android (Google) Code Review
commit b92c4e2319
1 changed files with 2 additions and 5 deletions

View File

@ -34,7 +34,6 @@ import android.os.IBinder.DeathRecipient;
import android.os.RemoteException; import android.os.RemoteException;
import android.os.UserHandle; import android.os.UserHandle;
import android.util.Log; import android.util.Log;
import android.util.Slog;
import android.view.MotionEvent; import android.view.MotionEvent;
import android.view.RemoteAnimationAdapter; import android.view.RemoteAnimationAdapter;
import android.view.RemoteAnimationTarget; import android.view.RemoteAnimationTarget;
@ -761,10 +760,8 @@ public class SystemUiProxy implements ISystemUiProxy,
public ArrayList<GroupedRecentTaskInfo> getRecentTasks(int numTasks, int userId) { public ArrayList<GroupedRecentTaskInfo> getRecentTasks(int numTasks, int userId) {
if (mRecentTasks != null) { if (mRecentTasks != null) {
try { try {
final GroupedRecentTaskInfo[] tasks = mRecentTasks.getRecentTasks(numTasks, return new ArrayList<>(Arrays.asList(mRecentTasks.getRecentTasks(numTasks,
RECENT_IGNORE_UNAVAILABLE, userId); RECENT_IGNORE_UNAVAILABLE, userId)));
Log.d("b/206648922", "getRecentTasks(" + numTasks + "): result=" + tasks);
return new ArrayList<>(Arrays.asList(tasks));
} catch (RemoteException e) { } catch (RemoteException e) {
Log.w(TAG, "Failed call getRecentTasks", e); Log.w(TAG, "Failed call getRecentTasks", e);
} }