Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f8d5809e authored by Daniel Sandler's avatar Daniel Sandler
Browse files

Fix crash in status bar ticker.

Bug: 2900850
Change-Id: Iaf71e093578501258a24cd43e5deaf624d28461e
parent 567722ee
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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
            }
        }