commit | bfc1be1101b87f193b043b62edd1722b8c4eb23c | [log] [tgz] |
---|---|---|
author | Amith Yamasani <yamasani@google.com> | Tue May 15 11:12:17 2012 -0700 |
committer | Amith Yamasani <yamasani@google.com> | Tue May 15 11:12:17 2012 -0700 |
tree | 48530f29fffdce1ccb9d7efa6787312c37348e67 | |
parent | 8ce2d78aa89e89e9a5607d8809bf6d248508a531 [diff] [blame] |
Fix a problem in finish affinity in Activity Manager. Finishing tasks with an activity affinity was failing if the activity was found at index 0. This fixes the loop condition. Change-Id: If2e0d294e3e4493bca8b7efd40f24adaf2eb0b6f
diff --git a/services/java/com/android/server/am/ActivityStack.java b/services/java/com/android/server/am/ActivityStack.java index b9f63cf..78ddb51 100755 --- a/services/java/com/android/server/am/ActivityStack.java +++ b/services/java/com/android/server/am/ActivityStack.java
@@ -3543,7 +3543,7 @@ } ActivityRecord r = mHistory.get(index); - while (index > 0) { + while (index >= 0) { ActivityRecord cur = mHistory.get(index); if (cur.task != r.task) { break;