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

Commit bbf5436f authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "[RONs] Fix ProgressStyle totalLength calculation" into main

parents e89e0f63 6d9a341a
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -11831,7 +11831,7 @@ public class Notification implements Parcelable
                    if (length <= 0) continue;
                    try {
                        totalLength += Math.addExact(totalLength, length);
                        totalLength = Math.addExact(totalLength, length);
                        segments.add(sanitizeSegment(segment, backgroundColor,
                                defaultProgressColor));
                    } catch (ArithmeticException e) {
@@ -11853,7 +11853,6 @@ public class Notification implements Parcelable
                for (Point point : mProgressPoints) {
                    final int position = point.getPosition();
                    if (position < 0 || position > totalLength) continue;
                    points.add(sanitizePoint(point, backgroundColor, defaultProgressColor));
                }