Skip to content

fix(android): prevent Expanded Dark Theme color inversion on scanner#126

Merged
OS-pedrogustavobilro merged 2 commits into
mainfrom
fix/RMET-5280/android-expanded-dark-mode
Jun 26, 2026
Merged

fix(android): prevent Expanded Dark Theme color inversion on scanner#126
OS-pedrogustavobilro merged 2 commits into
mainfrom
fix/RMET-5280/android-expanded-dark-mode

Conversation

@OS-pedrogustavobilro

@OS-pedrogustavobilro OS-pedrogustavobilro commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Description

Fixes an issue where turning on Expanded Dark Theme in Android 16.1 or 17 was causing an incorrect color inversion in the scanning screen.

Change Type

  • Fix
  • Feature
  • Refactor
  • Breaking Change
  • Documentation
  • Other (CI, chores, etc.)

Rationale / Problems Fixed

Expanded Dark Theme is an accessibility feature added in Android 16.1, that when enabled, was causing the scanning screen to have a white tint, because (without this fix) it was assuming the screen was not in dark mode, therefore (wrongfully) inverting the colors.

Internal jira Reference: https://outsystemsrd.atlassian.net/browse/RMET-5280

Fix done via native library: OutSystems/OSBarcodeLib-Android#56

Tests or Reproductions

Feel free to test with the example app in this repository with an Android 16.1 or 17 device and turn on Dark Theme -> Expanded in device settigns.

Screenshots / Media

Before PR After PR
pixel_android17_before pixel_android17_after

Platforms Affected

  • Android
  • iOS
  • Web

@OS-pedrogustavobilro OS-pedrogustavobilro marked this pull request as ready for review June 26, 2026 15:53
@OS-pedrogustavobilro

Copy link
Copy Markdown
Contributor Author

Not looking for reviews in this PR, as it's just a dependency update; will be merging it.

@OS-pedrogustavobilro OS-pedrogustavobilro merged commit a222bc0 into main Jun 26, 2026
6 checks passed
@OS-pedrogustavobilro OS-pedrogustavobilro deleted the fix/RMET-5280/android-expanded-dark-mode branch June 26, 2026 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant