Make TextElement reapply styles if base text height has changed.

If the size or typeface style was rebound, it would already trigger the text styles to be re-applied. However, it's possible that changing the language to one that uses a different alphabet, or changing accessibility settings could change the base text height, even if the actual font size or typeface was not changed. Because Piet uses padding to adjust the top and bottom of TextElements to have the correct line height, the styles in the StyleProvider need to be updated as well.

PiperOrigin-RevId: 257635138
Change-Id: I4b1eec5ecda6c3b44e6dffd56bf0063a30f3be36
2 files changed
tree: 52336ef8b9cbdf9d03441696ec9be441d00d2390
  1. AUTHORS
  2. CONTRIBUTING.md
  3. CONTRIBUTORS
  4. LICENSE
  5. README.md
  6. WORKSPACE
  7. src/
  8. third_party/
README.md

Feed Libraries

This directory includes various libraries and protocols which users can use to to embed the proactive content recommendations into their application. Supported surfaces currently include Android.

Contributing

See CONTRIBUTING.md.