From b3e8e92441cf9168316142eb4ea718cdbfc4d01f 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 | 2 +- 1 file changed, 1 insertion(+), 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 5da51208e..ae14ab888 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/util/RtlUtils.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/util/RtlUtils.java @@ -529,7 +529,7 @@ public class RtlUtils { do { if ((line.length() + phrase.length() + word.length() < line_max_size) || - (phrase.length() == 0 && word.length() > line_max_size)) { + (line.length() == 0 && word.length() > line_max_size)) { if (isSpaceSign(c)) { word.append(c); addCharToWord = true;