File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
java/androidx/test/core/view Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 6
6
7
7
** Bug Fixes**
8
8
* Fix ` Rect ` handling in ` ViewCapture ` for SDK >= 34 for non root views.
9
+ * Fix bug reporting the status code when PixelCopy fails in ViewCapture.generateBitmapFromPixelCopy.
10
+
9
11
10
12
** New Features**
11
13
Original file line number Diff line number Diff line change @@ -313,7 +313,9 @@ private suspend fun View.generateBitmapFromPixelCopy(
313
313
if (result.status == PixelCopy .SUCCESS ) {
314
314
cont.resume(result.bitmap)
315
315
} else {
316
- cont.resumeWithException(RuntimeException (" PixelCopy failed: $(result.status)" ))
316
+ cont.resumeWithException(
317
+ RuntimeException (" PixelCopy failed with status code: ${result.status} " )
318
+ )
317
319
}
318
320
}
319
321
PixelCopy .request(request, HandlerExecutor (handler), onCopyFinished)
You can’t perform that action at this time.
0 commit comments