commit | 6dbd9626905f2210f7bfc334f1c0fb4f6bc4ffa9 | [log] [tgz] |
---|---|---|
author | Tyler Freeman <fuego@google.com> | Tue Jul 25 04:20:51 2023 -0700 |
committer | Tyler Freeman <fuego@google.com> | Wed Dec 13 13:39:05 2023 -0800 |
tree | 49e332876480087b8c5f69e5419a39503aa9d434 | |
parent | a407ee86dcb452c3609898d6a95da755428456aa [diff] |
fix(non linear font scaling): make FontScaleConverterFactory thread-safe We use the same technique as CopyOnWriteArrayList to protect the writes only. Reads can be a bit out of date since they are only used for caching. Bug: b/239736383 Flag: android.content.res.font_scale_converter_public Test: atest FrameworksCoreTests:android.content.res.FontScaleConverterFactoryTest Change-Id: I2cfefcf7a5c6f56294e87d4c35afc8499c2e7c02