1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-28 03:25:49 +01:00

fix long word bug in Rtl support

This commit is contained in:
Roi 2018-09-05 23:19:35 +03:00
parent bbf205b9a6
commit 3e6ddcc714

View File

@ -528,7 +528,8 @@ public class RtlUtils {
do {
if (line.length() + phrase.length() + word.length() < line_max_size) {
if ((line.length() + phrase.length() + word.length() < line_max_size) ||
(phrase.length() == 0 && word.length() > line_max_size)) {
if (isSpaceSign(c)) {
word.append(c);
addCharToWord = true;