+1
−0
+37
−1
+6
−0
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
Detects barcodes using a simple heuristic based on black and white pixel
count, then for any detected barcode image: the image is *not* inverted
and a white border is drawn around the image to provide the "quiet zone"
necessary for most barcode scanners to recognize the barcode.
Bug: 411725862
Test: atest RenderNodeDrawable
Test: Use in various apps that provide barcodes and QR codes, observe
barcodes are not inverted and other images are unaffected.
Test: Repeat using automated app crawl tests
Flag: android.view.accessibility.force_invert_color
Change-Id: I83e5302e18c69c01fd67f2ff0ca0f6e3abbdb75e