summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorRoozbeh Pournader <roozbeh@google.com>2017-10-23 12:16:32 -0700
committerRoozbeh Pournader <roozbeh@google.com>2017-10-24 16:21:51 -0700
commit3630d0861bc703cef843d5c196726235d72f1e80 (patch)
tree71bb4f1fc4093e21247f9ef1c4717619d0cc431f /tools/aapt2/java/JavaClassGenerator_test.cpp
parenta5da2cf57d581ea87481612e2a7b5e4f83119071 (diff)
Fix space counting for justified text
Previously, the number of stretchable spaces in a line were miscounted, always returning one more than the actual number. We now count them correctly. Also, disable NBSP as an stretchable space, since in some use cases it should not stretch and the implementation in Minikin was broken anyway. Test: Manual (justified text is now properly aligned on right side) Test: bit FrameworksCoreTests:android.text.TextLineTest Fixes: 68009059 Bug: 68204709 Change-Id: I473415a2a51eec75377d6ffc4a9adddc2033d360
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions