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

Commit 2417c31f authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Fixed device restart caused by starting Activity under split-screen root task." into main

parents f2c3583a 2f5d3e9f
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -2643,7 +2643,7 @@ class ActivityStarter {
        // If a target task is specified, try to reuse that one
        // If a target task is specified, try to reuse that one
        if (mOptions != null && mOptions.getLaunchTaskId() != INVALID_TASK_ID) {
        if (mOptions != null && mOptions.getLaunchTaskId() != INVALID_TASK_ID) {
            Task launchTask = mRootWindowContainer.anyTaskForId(mOptions.getLaunchTaskId());
            Task launchTask = mRootWindowContainer.anyTaskForId(mOptions.getLaunchTaskId());
            if (launchTask != null) {
            if (launchTask != null && launchTask.isLeafTask()) {
                return launchTask;
                return launchTask;
            }
            }
            return null;
            return null;