Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a46d3624 authored by Winson Chung's avatar Winson Chung
Browse files

Add logs for null task list

Bug: 206648922
Test: Adding logs
Change-Id: I23b8a9fadd1e555f1c3f7a75940bd7faa56b777b
parent 75867ae0
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -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<GroupedRecentTaskInfo> 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);
            }