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

Commit f21ef3d2 authored by Winson Chung's avatar Winson Chung Committed by Android (Google) Code Review
Browse files

Merge "Adding null check for focused stack before trying to switch affiliated tasks."

parents 386b397b 98127fb8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -385,7 +385,7 @@ public class Recents extends SystemUI
        }

        // Return early if there are no tasks in the focused stack
        if (focusedStack.getTaskCount() == 0) return;
        if (focusedStack == null || focusedStack.getTaskCount() == 0) return;

        ActivityManager.RunningTaskInfo runningTask = mSystemServicesProxy.getTopMostTask();
        // Return early if there is no running task (can't determine affiliated tasks in this case)