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
1 file changed