1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-16 15:09:26 +01:00

Make EmojiManager initialization synchronized

This commit is contained in:
cpfeiffer 2018-12-23 23:40:02 +01:00
parent e12561dd1d
commit ad9b45a94d

View File

@ -70,7 +70,7 @@ public class EmojiConverter {
return text; return text;
} }
private static String convertAdvancedEmojiToAscii(String text, Context context) { private static synchronized String convertAdvancedEmojiToAscii(String text, Context context) {
// Do a lazy initialisation not to slowdown the startup and when it is needed // Do a lazy initialisation not to slowdown the startup and when it is needed
if (!isInitialised) { if (!isInitialised) {
EmojiManager.initEmojiData(context); EmojiManager.initEmojiData(context);