File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed
sentry-android-replay/src/main/java/io/sentry/android/replay Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ ## Unreleased
4
+
5
+ ### Fixes
6
+
7
+ - Session Replay: Change bitmap config to ` ARGB_8888 ` for screenshots ([ #4282 ] ( https://github.com/getsentry/sentry-java/pull/4282 ) )
8
+
3
9
## 7.22.4
4
10
5
11
### Fixes
Original file line number Diff line number Diff line change @@ -53,13 +53,13 @@ internal class ScreenshotRecorder(
53
53
Bitmap .createBitmap(
54
54
1 ,
55
55
1 ,
56
- Bitmap .Config .RGB_565
56
+ Bitmap .Config .ARGB_8888
57
57
)
58
58
}
59
59
private val screenshot = Bitmap .createBitmap(
60
60
config.recordingWidth,
61
61
config.recordingHeight,
62
- Bitmap .Config .RGB_565
62
+ Bitmap .Config .ARGB_8888
63
63
)
64
64
private val singlePixelBitmapCanvas: Canvas by lazy(NONE ) { Canvas (singlePixelBitmap) }
65
65
private val prescaledMatrix by lazy(NONE ) {
@@ -217,7 +217,9 @@ internal class ScreenshotRecorder(
217
217
fun close () {
218
218
unbind(rootView?.get())
219
219
rootView?.clear()
220
- screenshot.recycle()
220
+ if (! screenshot.isRecycled) {
221
+ screenshot.recycle()
222
+ }
221
223
isCapturing.set(false )
222
224
}
223
225
You can’t perform that action at this time.
0 commit comments