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

Commit 905fe15e authored by Craig Mautner's avatar Craig Mautner Committed by Gerrit Code Review
Browse files

Merge "[ActivityManager] Avoid mistaking visibility by finishing task."

parents 8224edb9 1df4d9f8
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1705,6 +1705,10 @@ final class ActivityStack {
            boolean startIt = true;
            for (int taskNdx = mTaskHistory.size() - 1; taskNdx >= 0; --taskNdx) {
                task = mTaskHistory.get(taskNdx);
                if (task.getTopActivity() == null) {
                    // All activities in task are finishing.
                    continue;
                }
                if (task == r.task) {
                    // Here it is!  Now, if this is not yet visible to the
                    // user, then just add it without starting; it will