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

Commit 9693d953 authored by Winson Chung's avatar Winson Chung
Browse files

Updating task description whenever we create a RecentTaskInfo. (Bug. 15195617)

Change-Id: I371ee43296a983782eaed2e661b1febc71c86433
parent d3024154
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -7079,6 +7079,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.numActivities > 0 ? tr.taskId : -1;