Skip to content
Commit 4e361e9f authored by Riddle Hsu's avatar Riddle Hsu
Browse files

Remove invisible replaced recent task when going to home

There may be multiple tasks with the same base intent by
launching activity with intent flags (FLAG_ACTIVITY_NEW_TASK
| FLAG_ACTIVITY_MULTIPLE_TASK). Since the recents list only
stores the last task for the same task affinity or non-document
identical intent, if the previous task still contains activities,
it may be a leakage.

Bug: 142986867
Test: atest RecentTasksTest# \
      testAddTasksHomeClearUntrackedTasks_expectFinish

Change-Id: Ic6b42f53af31cc574994f1eca4977559cb2db072
parent 0acee601
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