Merge "[ActivityManager] Avoid mistaking visibility by finishing task."
This commit is contained in:
4
services/java/com/android/server/am/ActivityStack.java
Executable file → Normal file
4
services/java/com/android/server/am/ActivityStack.java
Executable file → Normal file
@@ -1705,6 +1705,10 @@ final class ActivityStack {
|
|||||||
boolean startIt = true;
|
boolean startIt = true;
|
||||||
for (int taskNdx = mTaskHistory.size() - 1; taskNdx >= 0; --taskNdx) {
|
for (int taskNdx = mTaskHistory.size() - 1; taskNdx >= 0; --taskNdx) {
|
||||||
task = mTaskHistory.get(taskNdx);
|
task = mTaskHistory.get(taskNdx);
|
||||||
|
if (task.getTopActivity() == null) {
|
||||||
|
// All activities in task are finishing.
|
||||||
|
continue;
|
||||||
|
}
|
||||||
if (task == r.task) {
|
if (task == r.task) {
|
||||||
// Here it is! Now, if this is not yet visible to the
|
// Here it is! Now, if this is not yet visible to the
|
||||||
// user, then just add it without starting; it will
|
// user, then just add it without starting; it will
|
||||||
|
|||||||
Reference in New Issue
Block a user