From b5580ad2e9e229342b97b9bf5f260df844d62e96 Mon Sep 17 00:00:00 2001 From: M66B Date: Mon, 9 Aug 2021 21:59:16 +0200 Subject: [PATCH] Fixed quote direction in composer --- app/src/main/java/eu/faircode/email/HtmlHelper.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/HtmlHelper.java b/app/src/main/java/eu/faircode/email/HtmlHelper.java index 5c7df5abad..8c8cdc5d79 100644 --- a/app/src/main/java/eu/faircode/email/HtmlHelper.java +++ b/app/src/main/java/eu/faircode/email/HtmlHelper.java @@ -2070,10 +2070,11 @@ public class HtmlHelper { static String getQuoteStyle(CharSequence quoted, int start, int end) { try { - if (TextDirectionHeuristics.FIRSTSTRONG_LTR.isRtl(quoted, start, end)) + int count = end - start; + if (TextDirectionHeuristics.FIRSTSTRONG_LTR.isRtl(quoted, start, count)) return "border-right:3px solid #ccc; padding-left:3px;"; } catch (Throwable ex) { - Log.e(new Throwable("getQuoteStyle", ex)); + Log.e(new Throwable("getQuoteStyle " + start + "..." + end, ex)); } return "border-left:3px solid #ccc; padding-left:3px;";