From 3e6ddcc714b882010524d80061c7b64d50504df6 Mon Sep 17 00:00:00 2001 From: Roi Date: Wed, 5 Sep 2018 23:19:35 +0300 Subject: [PATCH] fix long word bug in Rtl support --- .../nodomain/freeyourgadget/gadgetbridge/util/RtlUtils.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/util/RtlUtils.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/util/RtlUtils.java index 329e11b73..5da51208e 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/util/RtlUtils.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/util/RtlUtils.java @@ -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;