From 9693d9534342c9785877a9f98ec5aff6fd9ac496 Mon Sep 17 00:00:00 2001 From: Winson Chung Date: Tue, 27 May 2014 11:09:22 -0700 Subject: Updating task description whenever we create a RecentTaskInfo. (Bug. 15195617) Change-Id: I371ee43296a983782eaed2e661b1febc71c86433 --- services/core/java/com/android/server/am/ActivityManagerService.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'services/core') diff --git a/services/core/java/com/android/server/am/ActivityManagerService.java b/services/core/java/com/android/server/am/ActivityManagerService.java index ac30319..3759c1e 100644 --- a/services/core/java/com/android/server/am/ActivityManagerService.java +++ b/services/core/java/com/android/server/am/ActivityManagerService.java @@ -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; -- cgit v1.1