Skip to content

Commit 7f1d5a0

Browse files
committed
ConfigureAwait
1 parent c0735e9 commit 7f1d5a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

BarcodeScanning.Native.Maui/Platform/Android/CameraManager.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,15 +269,15 @@ private async Task DetectBarcode(IImageProxy proxy)
269269
using var coordinateTransform = new CoordinateTransform(source, target);
270270

271271
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);
273273

274274
Methods.ProcessBarcodeResult(results, _barcodeResults, coordinateTransform);
275275

276276
if (_cameraView.ForceInverted)
277277
{
278278
Methods.InvertLuminance(proxy.Image);
279279
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);
281281

282282
Methods.ProcessBarcodeResult(invertedresults, _barcodeResults, coordinateTransform);
283283
}

0 commit comments

Comments
 (0)