From 6529cbad689d6e401f7366f765efeaa9122b45fe Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 12 Nov 2020 09:56:21 +0100 Subject: [PATCH] Removed normalizing of notifications --- app/src/main/java/eu/faircode/email/Core.java | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/Core.java b/app/src/main/java/eu/faircode/email/Core.java index 2e25ca09f5..3e189b8783 100644 --- a/app/src/main/java/eu/faircode/email/Core.java +++ b/app/src/main/java/eu/faircode/email/Core.java @@ -86,7 +86,6 @@ import java.net.SocketException; import java.net.UnknownHostException; import java.nio.charset.StandardCharsets; import java.text.DateFormat; -import java.text.Normalizer; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Arrays; @@ -4046,14 +4045,8 @@ class Core { if (!TextUtils.isEmpty(preview)) sb.append(preview); } - if (sb.length() > 0) { - String ascii = Normalizer - .normalize(sb.toString(), Normalizer.Form.NFKD) - .replaceAll("\\p{InCombiningDiacriticalMarks}+", "") - .replace("ß", "ss") - .replace("ij", "ij"); - mbuilder.setContentText(ascii); - } + if (sb.length() > 0) + mbuilder.setContentText(sb.toString()); // Device if (!notify_messaging) {