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

Commit 03adf737 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Only update the task description when the task/description changes"

parents bc8c25a4 8d9009e1
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -1426,9 +1426,6 @@ class RecentTasks {
     * Creates a new RecentTaskInfo from a TaskRecord.
     */
    ActivityManager.RecentTaskInfo createRecentTaskInfo(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.getTopActivity() == null ? INVALID_TASK_ID : tr.taskId;
+3 −0
Original line number Diff line number Diff line
@@ -1626,6 +1626,9 @@ class TaskRecord extends ConfigurationContainer implements TaskWindowContainerLi
        final int effectiveRootIndex = findEffectiveRootIndex();
        final ActivityRecord r = mActivities.get(effectiveRootIndex);
        setIntent(r);

        // Update the task description when the activities change
        updateTaskDescription();
    }

    void saveToXml(XmlSerializer out) throws IOException, XmlPullParserException {