1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-25 18:15:49 +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;
}
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
if (!isInitialised) {
EmojiManager.initEmojiData(context);