| commit | bae1102a51a5c4a88bb3edac7c540736b8c7522b | [log] [tgz] |
|---|---|---|
| author | Tyler Freeman <fuego@google.com> | Thu Dec 01 13:29:05 2022 -0800 |
| committer | Tyler Freeman <fuego@google.com> | Thu Dec 01 17:05:32 2022 -0800 |
| tree | 59d3ff8ce215589dbf16704e7a7e6a3f876e6ceb | |
| parent | da9efd894e1c9b6fe279465e734a71297a4056cc [diff] |
fix(non linear font scaling): fix crash with certain negative SP values The crash was due to some old logic that was looking for near matches. Now we only return exact matches, and let the interpolation deal with near matches. Add test to make sure it doesn't crash at any value passed in. Test: atest FrameworksCoreTests:android.content.res.FontScaleConverterTest Bug: b/260984829 Change-Id: Ic90d1c5b48862e4f78b90be5926c9ce6d468acf9