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

Commit 910b5da9 authored by Bryce Lee's avatar Bryce Lee Committed by android-build-merger
Browse files

Merge "Remove all activities that do not successfully launch." into oc-dev am: 1a08d200

am: 1f459d2f

Change-Id: I2d8eef0575d3b8282eb46aff7a0f4afe73bfebf5
parents a395fd13 1f459d2f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -957,7 +957,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 (ActivityManager.isStartResultFatalError(result)
            if (!ActivityManager.isStartResultSuccessful(result)
                    && mStartActivity.getTask() != null) {
                mStartActivity.getTask().removeActivity(mStartActivity);
            }