Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 17257343 authored by Evan Rosky's avatar Evan Rosky
Browse files

Request traversal after pause+no-resume

Once an activity is paused, if there was nothing to resume
afterwards, still trigger a traversal so that the syncengine
can refresh based on the no-longer-pausing state.

Bug: 392955356
Test: close a freeform task which doesn't report pausecomplete
Flag: EXEMPT bugfix
Change-Id: Id6f405e89134c1c520ac93c6455fb2577e45d708
parent e7ba61fd
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -2053,7 +2053,12 @@ class TaskFragment extends WindowContainer<WindowContainer> {
        if (resumeNext) {
            final Task topRootTask = mRootWindowContainer.getTopDisplayFocusedRootTask();
            if (topRootTask != null && !topRootTask.shouldSleepOrShutDownActivities()) {
                final boolean resumed =
                        mRootWindowContainer.resumeFocusedTasksTopActivities(topRootTask, prev);
                if (!resumed && mWmService.mSyncEngine.hasActiveSync()) {
                    // TODO(b/294925498): Remove this once we have accurate ready tracking.
                    mWmService.requestTraversal();
                }
            } else {
                // checkReadyForSleep();
                final ActivityRecord top =