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

Commit 689e2752 authored by Craig Mautner's avatar Craig Mautner Committed by Android Git Automerger
Browse files

am f37034ac: am 905fe15e: Merge "[ActivityManager] Avoid mistaking visibility by finishing task."

* commit 'f37034ac':
  [ActivityManager] Avoid mistaking visibility by finishing task.
parents 7799943e f37034ac
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1882,6 +1882,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