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

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

Merge "Only remove task if activity fails to start." into oc-dev

parents 2ad5beb8 27ed7d46
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -953,7 +953,7 @@ class ActivityStarter {
            // If we are not able to proceed, disassociate the activity from the task. Leaving an
            // activity in an incomplete state can lead to issues, such as performing operations
            // without a window container.
            if (result != START_SUCCESS && mStartActivity.getTask() != null) {
            if (result < START_SUCCESS && mStartActivity.getTask() != null) {
                mStartActivity.getTask().removeActivity(mStartActivity);
            }
            mService.mWindowManager.continueSurfaceLayout();