Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ff831abf authored by Daniel Norman's avatar Daniel Norman
Browse files

fix(edt): Exclude barcodes from inversion in force invert

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
parent 8a414be0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment