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:
parent
e12561dd1d
commit
ad9b45a94d
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user