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

Commit bc3b6670 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Revert part of ag/6685504" into qt-dev

parents b2b42128 77551ed3
Loading
Loading
Loading
Loading
+1 −15
Original line number Diff line number Diff line
@@ -3055,22 +3055,8 @@ class ActivityStack extends ConfigurationContainer {
        ActivityOptions.abort(options);
        if (DEBUG_STATES) Slog.d(TAG_STATES,
                "resumeTopActivityInNextFocusableStack: " + reason + ", go home");
        if (isActivityTypeHome()) {
            // resumeTopActivityUncheckedLocked has been prevented to run recursively. Post a
            // runnable to resume home since we are currently in the process of resuming top
            // activity in home stack.
            // See {@link #mInResumeTopActivity}.
            mService.mH.post(
                    () -> {
                        synchronized (mService.mGlobalLock) {
                            mRootActivityContainer.resumeHomeActivity(prev, reason, mDisplayId);
                        }
                    });
            return true;
        } else {
        return mRootActivityContainer.resumeHomeActivity(prev, reason, mDisplayId);
    }
    }

    /** Returns the position the input task should be placed in this stack. */
    int getAdjustedPositionForTask(TaskRecord task, int suggestedPosition,