[go: nahoru, domu]

In greedy line breaking, repeat breaks until the line fits

Previously, in greedy line breaking, when a line overflowed, we found
the best line breaking candidate before it and broke the line there.
But we didn't check to see if the remaining part now fits in a line.

With this change, we now repeat checking for overflows, and break
again until we have no breaking opportunity or the remaining text now
fits in a line.

Also found an issue with greedy line breaking and keeping the
hyphenation edit for the next line which is now fixed.

Test: Manual. The issue reported in the bug is now fixed.
Bug: 34185255
Bug: https://code.google.com/p/android/issues/detail?id=231437
Bug: 33560754
Change-Id: I93bdd341e4f8e1257710e453e4938f224cb2a1ff
2 files changed
tree: e7086f311ac42bb3cb6e51c3cafa3638cfc21e70
  1. app/
  2. doc/
  3. include/
  4. libs/
  5. tests/
  6. tools/