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

Commit 1f459d2f 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

Change-Id: I3c64a124b326b96ee38d55bef230d469e34e3db8
parents c17f1d9c 1a08d200
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);
            }