summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorCraig Mautner <cmautner@google.com>2013-12-19 00:47:34 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2013-12-19 00:47:34 +0000
commita9099693860bb4631184724a52585a2892972a1c (patch)
tree43635552037a6ce095c68def250fb997bba20661 /services
parent2b3f9aa748cf4477077e0785a01a4de753ab97e9 (diff)
parent525680d2bff686ecbddeb84f7f493f8bb31e670d (diff)
downloadframeworks_base-a9099693860bb4631184724a52585a2892972a1c.zip
frameworks_base-a9099693860bb4631184724a52585a2892972a1c.tar.gz
frameworks_base-a9099693860bb4631184724a52585a2892972a1c.tar.bz2
am 525680d2: Merge "Fix loop limits." into klp-modular-dev
* commit '525680d2bff686ecbddeb84f7f493f8bb31e670d': Fix loop limits.
Diffstat (limited to 'services')
-rw-r--r--services/java/com/android/server/am/TaskRecord.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/java/com/android/server/am/TaskRecord.java b/services/java/com/android/server/am/TaskRecord.java
index 5f32dbb..9105103 100644
--- a/services/java/com/android/server/am/TaskRecord.java
+++ b/services/java/com/android/server/am/TaskRecord.java
@@ -163,7 +163,7 @@ final class TaskRecord extends ThumbnailHolder {
final void setFrontOfTask() {
boolean foundFront = false;
final int numActivities = mActivities.size();
- for (int activityNdx = 0; numActivities < activityNdx; ++activityNdx) {
+ for (int activityNdx = 0; activityNdx < numActivities; ++activityNdx) {
final ActivityRecord r = mActivities.get(activityNdx);
if (foundFront || r.finishing) {
r.frontOfTask = false;