summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/src/com/android
diff options
context:
space:
mode:
authorSelim Cinek <cinek@google.com>2014-07-22 15:24:29 +0200
committerSelim Cinek <cinek@google.com>2014-07-22 15:28:54 +0200
commit3107cfacd34ded2508ab03c896e1ce894de0c795 (patch)
treee8d598b5c49a4d11a707e07dab31295be418bdc9 /packages/SystemUI/src/com/android
parent9f7c25ebeba866d0db696f5db0d29fa8c6a86768 (diff)
downloadframeworks_base-3107cfacd34ded2508ab03c896e1ce894de0c795.zip
frameworks_base-3107cfacd34ded2508ab03c896e1ce894de0c795.tar.gz
frameworks_base-3107cfacd34ded2508ab03c896e1ce894de0c795.tar.bz2
Fixed a bug with low priotity notification coloring
When there where only low priority notifications, the topmost notification was not colored correctly. Bug: 16197778 Change-Id: I9fe8da79cfa78a3b94a3107c9e1af83b859a093e
Diffstat (limited to 'packages/SystemUI/src/com/android')
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java b/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
index ee7206f..fe2733b 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackScrollAlgorithm.java
@@ -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;
}
}