File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
sentry-android-replay/src/main/java/io/sentry/android/replay Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -52,13 +52,13 @@ internal class ScreenshotRecorder(
5252 Bitmap .createBitmap(
5353 1 ,
5454 1 ,
55- Bitmap .Config .RGB_565
55+ Bitmap .Config .ARGB_8888
5656 )
5757 }
5858 private val screenshot = Bitmap .createBitmap(
5959 config.recordingWidth,
6060 config.recordingHeight,
61- Bitmap .Config .RGB_565
61+ Bitmap .Config .ARGB_8888
6262 )
6363 private val singlePixelBitmapCanvas: Canvas by lazy(NONE ) { Canvas (singlePixelBitmap) }
6464 private val prescaledMatrix by lazy(NONE ) {
@@ -216,7 +216,9 @@ internal class ScreenshotRecorder(
216216 fun close () {
217217 unbind(rootView?.get())
218218 rootView?.clear()
219- screenshot.recycle()
219+ if (! screenshot.isRecycled) {
220+ screenshot.recycle()
221+ }
220222 isCapturing.set(false )
221223 }
222224
You can’t perform that action at this time.
0 commit comments