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

Skip to content
Commit 0b1a4fbf authored by Daniel Norman's avatar Daniel Norman
Browse files

Expand the a11y focus bounds if they're too small to be visible.

Attempting to draw the focus drawable with bounds that are smaller
than 2 times the focus stroke size results in it being invisible.
Normally Views shouldn't be this thin in the first place, but this
change helps ensure the focus is visible when drawn over those edge
case ultra-thin Views.

See the bug comment 10 for screenshots of the fix.

Flag: android.view.accessibility.focus_rect_min_size
Test: atest FrameworksCoreTests:ViewRootImplTest
Test: Open problem app from bug, observe focus rect is now visible
Bug: 368667566
Change-Id: I5261cbd980d2a11a28a755756a4104ac2a349870
parent 562064be
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