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

Commit 7573c031 authored by morckx's avatar morckx
Browse files

Eleven: Fix crash in LetterTileDrawable



- Make sure that the title string is not empty.

Change-Id: Ifa4b4f916f476519ecef19629e5b9d33ac0642e1
Signed-off-by: default avatarmorckx <morckx@gmail.com>
parent 1074892a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -135,7 +135,7 @@ public class LetterTileDrawable extends Drawable {
        }

        // Draw letter/digit only if the first character is an english letter
        if (mDisplayName != null
        if (mDisplayName != null && !mDisplayName.isEmpty()
                && isEnglishLetter(mDisplayName.charAt(0))) {
            int numChars = 1;