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

Commit 2c70e825 authored by Winson Chung's avatar Winson Chung Committed by android-build-merger
Browse files

Merge "Only remove task if activity fails to start." into oc-dev am: 53bac3d9

am: c45dc59b

Change-Id: Id53132990bd479943815f431fa219541c8daeffa
parents b7c28758 c45dc59b
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();