am e88c300f: am 2306e0be: am 65ae25b4: Merge "Fixed a bug with low priotity notification coloring" into lmp-dev

* commit 'e88c300fb311bc6f3c853b93fa24495a895e90c4':
  Fixed a bug with low priotity notification coloring
This commit is contained in:
Selim Cinek
2014-07-22 16:12:57 +00:00
committed by Android Git Automerger

View File

@@ -171,7 +171,10 @@ public class StackScrollAlgorithm {
for (int i = 0; i < childCount; i++) {
View child = algorithmState.visibleChildren.get(i);
StackScrollState.ViewState childViewState = resultState.getViewStateForView(child);
childViewState.belowSpeedBump = speedBumpIndex != -1 && i > speedBumpIndex;
// The speed bump can also be gone, so equality needs to be taken when comparing
// indices.
childViewState.belowSpeedBump = speedBumpIndex != -1 && i >= speedBumpIndex;
}
}