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

Commit f51426a6 authored by Vinit Nayak's avatar Vinit Nayak Committed by Android (Google) Code Review
Browse files

Merge "Add null check for recents when tapping on Taskbar icons" into tm-qpr-dev

parents 5248b020 26c89360
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -877,7 +877,11 @@ public class TaskbarActivityContext extends BaseTaskbarContext {
     * as if the user tapped on it (preserving the split pair). Otherwise, launch it normally
     * (potentially breaking a split pair).
     */
    private void launchFromTaskbarPreservingSplitIfVisible(RecentsView recents, ItemInfo info) {
    private void launchFromTaskbarPreservingSplitIfVisible(@Nullable RecentsView recents,
            ItemInfo info) {
        if (recents == null) {
            return;
        }
        ComponentKey componentToBeLaunched = new ComponentKey(info.getTargetComponent(), info.user);
        recents.getSplitSelectController().findLastActiveTaskAndRunCallback(
                componentToBeLaunched,