Skip to content
Commit 66421c5d authored by vincent.cw_lee's avatar vincent.cw_lee Committed by Joey
Browse files

Fix: "Clear All" recent app screen loop bug

The previous commit solves the issue that users can not swipe an app
away from recent apps if it was exited with the back button.
(see f59b8135 Fix: Recent Apps not closing)

However, it still has a similar problem in the case of users press the
clear all button. Because the method removeAllVisibleTasks() will remove
the task record from recent tasks in an earlier stage, so
removeTaskByIdLocked() can not get the task record from either task
stacks or recent tasks and notifyTaskStackChanged() will not be invoked.

Solution: Call notifyTaskStackChanged as well for the non-existent task

Test:
1. Clear all apps from recent apps first and make sure the list is
emptied
2. Open an app and exit with back button
3. Go to recent apps and press the clear all button
4. Open recent apps again and the app should be removed from the list

Bug: https://issuetracker.google.com/issues/137386250


Change-Id: I7ffd36fe7760b9f087e26c768219d7e7a5f12807
Signed-off-by: default avatarArghya Chanda <arghyac35@gmail.com>
Signed-off-by: default avatarSagarMakhar <sagarmakhar@gmail.com>
Signed-off-by: default avatarDmitrii <bankersenator@gmail.com>
Signed-off-by: default avatarJoey Huab <joey@evolution-x.org>
Signed-off-by: default avatarspezi77 <spezi7713@gmx.net>
Signed-off-by: default avatarS I P U N <sipunkumar85@gmail.com>
parent 843e8eba
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