summaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorDaniel Sandler <dsandler@android.com>2010-08-16 13:20:19 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2010-08-16 13:20:19 -0700
commite03e6d3072592b2a49ee4a43c5977e7462bf9fd0 (patch)
tree301349a3dffe794b6946ff8011b77dd27f8cf869 /packages
parentf54da15b7c3fa55268451c485544e831832fdf15 (diff)
parent80810f86e93866674f3a4ca61f84887e7717aa63 (diff)
downloadframeworks_base-e03e6d3072592b2a49ee4a43c5977e7462bf9fd0.zip
frameworks_base-e03e6d3072592b2a49ee4a43c5977e7462bf9fd0.tar.gz
frameworks_base-e03e6d3072592b2a49ee4a43c5977e7462bf9fd0.tar.bz2
am 80810f86: Merge "Fix crash in status bar ticker." into gingerbread
Merge commit '80810f86e93866674f3a4ca61f84887e7717aa63' into gingerbread-plus-aosp * commit '80810f86e93866674f3a4ca61f84887e7717aa63': Fix crash in status bar ticker.
Diffstat (limited to 'packages')
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/Ticker.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/Ticker.java b/packages/SystemUI/src/com/android/systemui/statusbar/Ticker.java
index 07e8653..3a697a6 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/Ticker.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/Ticker.java
@@ -185,11 +185,11 @@ public abstract class Ticker {
final Segment newSegment = new Segment(n, icon, n.notification.tickerText);
// If there's already a notification schedule for this package and id, remove it.
- for (int i=0; i<initialCount; i++) {
+ for (int i=0; i<mSegments.size(); i++) {
Segment seg = mSegments.get(i);
if (n.id == seg.notification.id && n.pkg.equals(seg.notification.pkg)) {
// just update that one to use this new data instead
- mSegments.remove(i);
+ mSegments.remove(i--); // restart iteration here
}
}