summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorSiarhei Vishniakou <svv@google.com>2018-09-10 17:15:38 -0700
committerSiarhei Vishniakou <svv@google.com>2018-09-10 17:24:03 -0700
commit4da1ee45a1009e7082cb96134e454ae261753991 (patch)
tree044d5fc537b7251d31435ea6c9b5b7a23d42fe3c /tools/aapt2/java/JavaClassGenerator_test.cpp
parentf8c9282061f555cecad907b0466c496e14e6b998 (diff)
Fix velocity reporting for negative values > -1
Currently, a velocity with a magnitude of (for example) 0.1 and a negative sign will be displayed as positive 0.1 by the FasterStringBuilder. This is because casting a float to an int makes it zero, and the sign gets lost: (int)-0.1f = 0. Add this sign here. Bug: 112705257 Test: enabled pointer location, and manually generated some flings that have negative direction and magnitude less than 1. Confirmed that the velocity sign is displayed correctly. Change-Id: I0d777e790d324739ce248d3e6b8e04692400d832
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions