Merge "Finishing the visible requested activity vs. destroying it" into tm-qpr-dev

This commit is contained in:
Louis Chang
2022-12-17 08:32:09 +00:00
committed by Android (Google) Code Review

View File

@@ -1062,7 +1062,7 @@ class WindowOrganizerController extends IWindowOrganizerController.Stub
if (activity == null || activity.finishing) { if (activity == null || activity.finishing) {
break; break;
} }
if (activity.isVisible()) { if (activity.isVisible() || activity.isVisibleRequested()) {
// Prevent the transition from being executed too early if the activity is // Prevent the transition from being executed too early if the activity is
// visible. // visible.
activity.finishIfPossible("finish-activity-op", false /* oomAdj */); activity.finishIfPossible("finish-activity-op", false /* oomAdj */);