Merge "Kill tasks that are neither visible nor in focus" into main
This commit is contained in:
committed by
Android (Google) Code Review
commit
1b1c159d9f
@@ -448,7 +448,7 @@ public class PrivateSpaceMaintainer {
|
||||
private void removeSettingsAllTasks() {
|
||||
List<ActivityManager.AppTask> appTasks = mActivityManager.getAppTasks();
|
||||
for (var appTask : appTasks) {
|
||||
if (!appTask.getTaskInfo().isVisible()) {
|
||||
if (!(appTask.getTaskInfo().isVisible() || appTask.getTaskInfo().isFocused)) {
|
||||
appTask.finishAndRemoveTask();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user