Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix zero-width text views for LEGACY graphics in Android U+
Previously, in Android U, for LEGACY graphics, TextViews were always considered to be zero-width. Add a shadow implementation for Paint.nGetRunCharacterAdvance in U. This logic is used in the TextView width calculation. Also preemptively add support for it in V, where the signature has already changed. This also fixes the Robolectric EspressoTest when running with LEGACY graphics. PiperOrigin-RevId: 576275359
- Loading branch information
Showing
2 changed files
with
42 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters