Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1be97b85 authored by Philip's avatar Philip Committed by GitHub
Browse files

Merge pull request #2217 from daquexian/issue_740

Allow any unicode letter to act as a placeholder for contacts with no photo.
parents fc6d5188 a978fd0f
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -38,7 +38,7 @@ public class ContactPictureLoader {
    /**
    /**
     * Pattern to extract the letter to be displayed as fallback image.
     * 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.
     * Letter to use when {@link #EXTRACT_LETTER_PATTERN} couldn't find a match.