Loading services/core/java/com/android/server/wm/ActivityTaskManagerService.java +13 −11 Original line number Diff line number Diff line Loading @@ -6270,21 +6270,23 @@ public class ActivityTaskManagerService extends IActivityTaskManager.Stub { finishInstrumentationCallback.run(); } if (!restarting && hasVisibleActivities) { mWindowManager.deferSurfaceLayout(); try { if (!restarting && hasVisibleActivities && !mRootActivityContainer.resumeFocusedStacksTopActivities()) { // If there was nothing to resume, and we are not already restarting this // process, but there is a visible activity that is hosted by the process... // then make sure all visible activities are running, taking care of // restarting this process. mRootActivityContainer.ensureActivitiesVisible(null, 0, !PRESERVE_WINDOWS); if (!mRootActivityContainer.resumeFocusedStacksTopActivities()) { // If there was nothing to resume, and we are not already restarting // this process, but there is a visible activity that is hosted by the // process...then make sure all visible activities are running, taking // care of restarting this process. mRootActivityContainer.ensureActivitiesVisible(null, 0, !PRESERVE_WINDOWS); } } finally { mWindowManager.continueSurfaceLayout(); } } } } @Override public void closeSystemDialogs(String reason) { Loading Loading
services/core/java/com/android/server/wm/ActivityTaskManagerService.java +13 −11 Original line number Diff line number Diff line Loading @@ -6270,21 +6270,23 @@ public class ActivityTaskManagerService extends IActivityTaskManager.Stub { finishInstrumentationCallback.run(); } if (!restarting && hasVisibleActivities) { mWindowManager.deferSurfaceLayout(); try { if (!restarting && hasVisibleActivities && !mRootActivityContainer.resumeFocusedStacksTopActivities()) { // If there was nothing to resume, and we are not already restarting this // process, but there is a visible activity that is hosted by the process... // then make sure all visible activities are running, taking care of // restarting this process. mRootActivityContainer.ensureActivitiesVisible(null, 0, !PRESERVE_WINDOWS); if (!mRootActivityContainer.resumeFocusedStacksTopActivities()) { // If there was nothing to resume, and we are not already restarting // this process, but there is a visible activity that is hosted by the // process...then make sure all visible activities are running, taking // care of restarting this process. mRootActivityContainer.ensureActivitiesVisible(null, 0, !PRESERVE_WINDOWS); } } finally { mWindowManager.continueSurfaceLayout(); } } } } @Override public void closeSystemDialogs(String reason) { Loading