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

Commit a64a5fe6 authored by Winson Chung's avatar Winson Chung Committed by Android Git Automerger
Browse files

am bff02603: Merge "Updating task description whenever we create a...

am bff02603: Merge "Updating task description whenever we create a RecentTaskInfo. (Bug. 15195617)" into lmp-preview-dev

* commit 'bff026033d40ee48e9bf8dca17e1fbbee8b41293':
  Updating task description whenever we create a RecentTaskInfo. (Bug. 15195617)
parents 1a68f24a 8804ce96
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -7088,6 +7088,10 @@ public final class ActivityManagerService extends ActivityManagerNative
     * Creates a new RecentTaskInfo from a TaskRecord.
     * Creates a new RecentTaskInfo from a TaskRecord.
     */
     */
    private ActivityManager.RecentTaskInfo createRecentTaskInfoFromTaskRecord(TaskRecord tr) {
    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
        ActivityManager.RecentTaskInfo rti
                = new ActivityManager.RecentTaskInfo();
                = new ActivityManager.RecentTaskInfo();
        rti.id = tr.mActivities.isEmpty() ? -1 : tr.taskId;
        rti.id = tr.mActivities.isEmpty() ? -1 : tr.taskId;