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

Commit ef36ff04 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Prevent task in recents being empty when activity info in unavailable"

parents 33d881f8 6acfb654
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -115,8 +115,12 @@ public class RecentsTaskLoadPlan {
            boolean isStackTask = !isFreeformTask;
            boolean isLaunchTarget = taskKey.id == runningTaskId;

            // Load the title, icon, and color
            ActivityInfo info = loader.getAndUpdateActivityInfo(taskKey);
            if (info == null) {
                continue;
            }

            // Load the title, icon, and color
            String title = loader.getAndUpdateActivityTitle(taskKey, t.taskDescription);
            String titleDescription = loader.getAndUpdateContentDescription(taskKey,
                    t.taskDescription);