diff options
| author | Siyamed Sinir <siyamed@google.com> | 2018-03-15 18:00:07 -0700 |
|---|---|---|
| committer | Siyamed Sinir <siyamed@google.com> | 2018-03-16 14:49:23 -0700 |
| commit | db86a6b047dda704a1b8a6ff2d5b28b00febd444 (patch) | |
| tree | 53009da493bfd53bdd32a56c1f276e0d86008fcb /tools/aapt2/java/JavaClassGenerator_test.cpp | |
| parent | 117016026df312f047a9eea1ce8c32fa6d37629c (diff) | |
Fix rounding error related to autoSize
setupAutoSize fills in the possible text sizes that can be generated
between a min and max value. In order to do that, it counts the number
of steps starting from minSize until maxSize. However, while counting
it rounds the initial value, which causes rounding error at the final
step.
Test: Change system font scale to 1.1 via
adb shell settings put system font_scale 1.1
Test: atest android.widget.cts.TextViewTest
Bug: 73917559
Bug: 75266270
Change-Id: I61811db28ef01262bd48f5042d783d75c71c3614
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions
