Skip to content

Commit ab1a12c

Browse files
committed
Revert "fix(replay): Fix IllegalArgumentException when Bitmap is initialized with non-positive values (#4536)"
This reverts commit 185b5dc.
1 parent 6d183f3 commit ab1a12c

File tree

3 files changed

+3
-38
lines changed

3 files changed

+3
-38
lines changed

CHANGELOG.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
- Correctly capture Dialogs and non full-sized windows ([#4354](https://github.com/getsentry/sentry-java/pull/4354))
1919
- Fix Session Replay masking for newer versions of Jetpack Compose (1.8+) ([#4485](https://github.com/getsentry/sentry-java/pull/4485))
2020
- Session Replay: Expand fix for crash on devices to all Unisoc/Spreadtrum chipsets ([#4510](https://github.com/getsentry/sentry-java/pull/4510))
21-
- Session Replay: Fix `IllegalArgumentException` when `Bitmap` is initialized with non-positive values ([#4536](https://github.com/getsentry/sentry-java/pull/4536))
2221

2322
## 7.22.5
2423

sentry-android-replay/src/main/java/io/sentry/android/replay/util/Views.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,4 +224,6 @@ internal fun View?.removeOnPreDrawListenerSafe(listener: ViewTreeObserver.OnPreD
224224
}
225225
}
226226

227-
internal fun View.hasSize(): Boolean = width > 0 && height > 0
227+
internal fun View.hasSize(): Boolean {
228+
return width != 0 && height != 0
229+
}

sentry-android-replay/src/test/java/io/sentry/android/replay/util/ViewsTest.kt

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)