Merge "Fix: Recent Apps not closing"

This commit is contained in:
Riddle Hsu
2019-10-16 14:43:19 +00:00
committed by Gerrit Code Review
2 changed files with 1 additions and 4 deletions

View File

@@ -1541,10 +1541,6 @@ final class ActivityRecord extends ConfigurationContainer {
if (stopped) {
clearOptionsLocked();
}
if (mAtmService != null) {
mAtmService.getTaskChangeNotificationController().notifyTaskStackChanged();
}
}
UriPermissionOwner getUriPermissionsLocked() {

View File

@@ -1794,6 +1794,7 @@ public class ActivityStackSupervisor implements RecentTasks.Callbacks {
tr.removeTaskActivitiesLocked(pauseImmediately, reason);
cleanUpRemovedTaskLocked(tr, killProcess, removeFromRecents);
mService.getLockTaskController().clearLockedTask(tr);
mService.getTaskChangeNotificationController().notifyTaskStackChanged();
if (tr.isPersistable) {
mService.notifyTaskPersisterLocked(null, true);
}