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

Commit a1404fd1 authored by riddle_hsu's avatar riddle_hsu Committed by Android Git Automerger
Browse files

am 5b94ec47: [ActivityManager] Avoid mistaking visibility by finishing task.

* commit '5b94ec47e84d5e1d116fc281e81d9164f496a388':
  [ActivityManager] Avoid mistaking visibility by finishing task.
parents f35c97a6 9bcc6e83
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