File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
BarcodeScanning.Native.Maui/Platform/Android Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -269,15 +269,15 @@ private async Task DetectBarcode(IImageProxy proxy)
269
269
using var coordinateTransform = new CoordinateTransform ( source , target ) ;
270
270
271
271
using var image = InputImage . FromMediaImage ( proxy . Image , proxy . ImageInfo . RotationDegrees ) ;
272
- using var results = await _barcodeScanner . Process ( image ) . AsAsync < Java . Lang . Object > ( ) ;
272
+ using var results = await _barcodeScanner . Process ( image ) . AsAsync < Java . Lang . Object > ( ) . ConfigureAwait ( false ) ;
273
273
274
274
Methods . ProcessBarcodeResult ( results , _barcodeResults , coordinateTransform ) ;
275
275
276
276
if ( _cameraView . ForceInverted )
277
277
{
278
278
Methods . InvertLuminance ( proxy . Image ) ;
279
279
using var invertedimage = InputImage . FromMediaImage ( proxy . Image , proxy . ImageInfo . RotationDegrees ) ;
280
- using var invertedresults = await _barcodeScanner . Process ( invertedimage ) . AsAsync < Java . Lang . Object > ( ) ;
280
+ using var invertedresults = await _barcodeScanner . Process ( invertedimage ) . AsAsync < Java . Lang . Object > ( ) . ConfigureAwait ( false ) ;
281
281
282
282
Methods . ProcessBarcodeResult ( invertedresults , _barcodeResults , coordinateTransform ) ;
283
283
}
You can’t perform that action at this time.
0 commit comments