diff options
author | Daniel Sandler <dsandler@android.com> | 2010-08-16 15:15:41 -0400 |
---|---|---|
committer | Daniel Sandler <dsandler@android.com> | 2010-08-16 15:15:41 -0400 |
commit | f8d5809eee3eb6c9e33bcc0363ac7d85559f6e08 (patch) | |
tree | 1888704d255ae793bdb66eed23d622815cce70d1 /packages/SystemUI | |
parent | 567722eee190f7cf88dc7ea95167db76d5514842 (diff) | |
download | frameworks_base-f8d5809eee3eb6c9e33bcc0363ac7d85559f6e08.zip frameworks_base-f8d5809eee3eb6c9e33bcc0363ac7d85559f6e08.tar.gz frameworks_base-f8d5809eee3eb6c9e33bcc0363ac7d85559f6e08.tar.bz2 |
Fix crash in status bar ticker.
Bug: 2900850
Change-Id: Iaf71e093578501258a24cd43e5deaf624d28461e
Diffstat (limited to 'packages/SystemUI')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/Ticker.java | 4 |
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 } } |