diff options
author | Winson Chung <winsonc@google.com> | 2014-05-27 11:09:22 -0700 |
---|---|---|
committer | Winson Chung <winsonc@google.com> | 2014-05-27 11:09:22 -0700 |
commit | 9693d9534342c9785877a9f98ec5aff6fd9ac496 (patch) | |
tree | d78fc6340d589983b7b863ef446723077f80994c /services | |
parent | d30241541c3adcb126bb263ad8596e7902a6b5ae (diff) | |
download | frameworks_base-9693d9534342c9785877a9f98ec5aff6fd9ac496.zip frameworks_base-9693d9534342c9785877a9f98ec5aff6fd9ac496.tar.gz frameworks_base-9693d9534342c9785877a9f98ec5aff6fd9ac496.tar.bz2 |
Updating task description whenever we create a RecentTaskInfo. (Bug. 15195617)
Change-Id: I371ee43296a983782eaed2e661b1febc71c86433
Diffstat (limited to 'services')
-rw-r--r-- | services/core/java/com/android/server/am/ActivityManagerService.java | 4 |
1 files changed, 4 insertions, 0 deletions
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; |