Skip to content
Commit 079221fd authored by Winson Chung's avatar Winson Chung
Browse files

Fix regression in task trimming



- This change does not affect the trimming of inactive or visible tasks.
  The previous logic was too aggressive in clearing tasks that were being
  moved in the recent task list (only in the case when a new task is being
  added).  In particular if the two tasks share affinities, we should
  clean up the old task, but not clear it in replacing the task in the
  recents list.

Test: com.android.server.am.RecentTasksTest
Test: android.server.am.ActivityManagerDisplayTests
Test: #testContentDestroyOnDisplayRemoved
Bug: 70636181

Change-Id: If6275ff1d9d8f842ce1122e1229b46fae92c43b0
Signed-off-by: default avatarWinson Chung <winsonc@google.com>
parent 1f823962
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment