From a978fd0f40dcac6690aa42a48960b550e018fda8 Mon Sep 17 00:00:00 2001 From: daquexian Date: Thu, 9 Feb 2017 18:02:48 +0800 Subject: [PATCH] capture all unicode letters for unknown contact picture --- .../java/com/fsck/k9/activity/misc/ContactPictureLoader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/k9mail/src/main/java/com/fsck/k9/activity/misc/ContactPictureLoader.java b/k9mail/src/main/java/com/fsck/k9/activity/misc/ContactPictureLoader.java index dd10b4d9c..4b314d57d 100644 --- a/k9mail/src/main/java/com/fsck/k9/activity/misc/ContactPictureLoader.java +++ b/k9mail/src/main/java/com/fsck/k9/activity/misc/ContactPictureLoader.java @@ -38,7 +38,7 @@ public class ContactPictureLoader { /** * Pattern to extract the letter to be displayed as fallback image. */ - private static final Pattern EXTRACT_LETTER_PATTERN = Pattern.compile("[a-zA-Z]"); + private static final Pattern EXTRACT_LETTER_PATTERN = Pattern.compile("\\p{L}\\p{M}*"); /** * Letter to use when {@link #EXTRACT_LETTER_PATTERN} couldn't find a match.