commit | 3f71cc4c0feeb8a7dc3b7d9091bd8184e2751a9d | [log] [tgz] |
---|---|---|
author | Dan Nguyen <danzz@google.com> | Thu May 11 01:06:07 2023 -0700 |
committer | Dan Nguyen <danzz@google.com> | Thu May 11 01:11:29 2023 -0700 |
tree | e60fcd083088aa286ef0d3968f312cd35c454183 | |
parent | 2e7d0c9d6428f0b7d4fe5883eb609cf257baa57f [diff] |
Fix float int comparison for testSetLineHeightInUnits Because the height set is in SP and DP, it maybe rounded down/up after converting as the actual height is in pixel. So when we compare the height set and the final value, use a delta of 0.5f instead of 0.05f Bug: 268139562 Test: run cts -t android.widget.cts.TextViewTest#testSetLineHeightInUnits Change-Id: If31d9847506c876458157a3675fec22cf69bde52