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

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

Merge "Updating task description whenever we create a RecentTaskInfo. (Bug....

Merge "Updating task description whenever we create a RecentTaskInfo. (Bug. 15195617)" into lmp-preview-dev
parents 2ed67e6d 9693d953
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -7085,6 +7085,10 @@ public final class ActivityManagerService extends ActivityManagerNative
     * Creates a new RecentTaskInfo from a TaskRecord.
     */
    private ActivityManager.RecentTaskInfo createRecentTaskInfoFromTaskRecord(TaskRecord tr) {
        // Update the task description to reflect any changes in the task stack
        tr.updateTaskDescription();
        // Compose the recent task info
        ActivityManager.RecentTaskInfo rti
                = new ActivityManager.RecentTaskInfo();
        rti.id = tr.mActivities.isEmpty() ? -1 : tr.taskId;