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

Commit c45dc59b 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

Change-Id: Ibb614910e47ddc31fbf671ba83b5f148bfc74875
parents 89f98d02 53bac3d9
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();