Skip to content

Commit e4596ff

Browse files
committed
Changelog
1 parent 833b026 commit e4596ff

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
- Allow multiple UncaughtExceptionHandlerIntegrations to be active at the same time ([#4462](https://github.com/getsentry/sentry-java/pull/4462))
88
- Cache network capabilities and status to reduce IPC calls ([#4560](https://github.com/getsentry/sentry-java/pull/4560))
9+
- Deduplicate battery breadcrumbs ([#4561](https://github.com/getsentry/sentry-java/pull/4561))
910

1011
## 8.17.0
1112

sentry-android-core/src/main/java/io/sentry/android/core/SystemEventsBreadcrumbsIntegration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ private boolean isSimilarLevel(final @Nullable Float level1, final @Nullable Flo
372372
// Round both levels to 2 decimal places and compare
373373
float rounded1 = Math.round(level1 * 100f) / 100f;
374374
float rounded2 = Math.round(level2 * 100f) / 100f;
375-
return Float.compare(rounded1, rounded2) == 0;
375+
return rounded1 == rounded2;
376376
}
377377
}
378378

0 commit comments

Comments
 (0)