Skip to content

Commit fbfe48b

Browse files
authored
Merge branch 'main' into markushi/canvas-approach
2 parents 7000380 + 8c2f79b commit fbfe48b

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

.github/workflows/danger.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Danger
22

33
on:
44
pull_request:
5-
types: [opened, synchronize, reopened, edited, ready_for_review]
5+
types: [opened, synchronize, reopened, edited, ready_for_review, labeled, unlabeled]
66

77
jobs:
88
danger:

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
- The attribute reflected on the log is `mdc.<key>`, where `<key>` is the original key in the MDC.
1010
- This means that you will be able to filter/aggregate logs in the product based on these properties.
1111
- Only properties with keys matching the configured `contextTags` are sent as log attributes.
12-
- You can configure which properties are sent using `options.setContextTags` if initalizing manually, or by specifying a comma-separated list of keys with a `context-tags` entry in `sentry.properties` or `sentry.contex-tags` in `application.properties`.
12+
- You can configure which properties are sent using `options.setContextTags` if initalizing manually, or by specifying a comma-separated list of keys with a `context-tags` entry in `sentry.properties` or `sentry.context-tags` in `application.properties`.
1313
- Note that keys containing spaces are not supported.
1414
- Add experimental Sentry Android Distribution module for integrating with Sentry Build Distribution to check for and install updates ([#4804](https://github.com/getsentry/sentry-java/pull/4804))
1515
- Allow passing a different `Handler` to `SystemEventsBreadcrumbsIntegration` and `AndroidConnectionStatusProvider` so their callbacks are deliver to that handler ([#4808](https://github.com/getsentry/sentry-java/pull/4808))
@@ -27,6 +27,8 @@
2727
- Avoid StrictMode warnings ([#4724](https://github.com/getsentry/sentry-java/pull/4724))
2828
- Use logger from options for JVM profiler ([#4771](https://github.com/getsentry/sentry-java/pull/4771))
2929
- Session Replay: Avoid deadlock when pausing replay if no connection ([#4788](https://github.com/getsentry/sentry-java/pull/4788))
30+
- Session Replay: Fix capturing roots with no windows ([#4805](https://github.com/getsentry/sentry-java/pull/4805))
31+
- Session Replay: Fix `java.lang.IllegalArgumentException: width and height must be > 0` ([#4805](https://github.com/getsentry/sentry-java/pull/4805))
3032

3133
### Miscellaneous
3234

sentry-android-replay/src/main/java/io/sentry/android/replay/ScreenshotRecorder.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ public data class ScreenshotRecorderConfig(
178178
private fun Int.adjustToBlockSize(): Int {
179179
val remainder = this % 16
180180
return if (remainder <= 8) {
181-
this - remainder
181+
maxOf(16, this - remainder)
182182
} else {
183183
this + (16 - remainder)
184184
}

sentry-android-replay/src/main/java/io/sentry/android/replay/WindowRecorder.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,11 @@ internal class WindowRecorder(
114114
override fun onRootViewsChanged(root: View, added: Boolean) {
115115
rootViewsLock.acquire().use {
116116
if (added) {
117+
if (root.phoneWindow == null) {
118+
options.logger.log(WARNING, "Root view does not have a phone window, skipping.")
119+
return
120+
}
121+
117122
rootViews.add(WeakReference(root))
118123
capturer?.recorder?.bind(root)
119124
determineWindowSize(root)

0 commit comments

Comments
 (0)