From 443925d2e22fc4ca8b74167e01be3dbd2a84cc75 Mon Sep 17 00:00:00 2001 From: Christian Schneppe Date: Mon, 23 Sep 2019 20:50:35 +0200 Subject: correct file locations for EmojiService --- .../de/pixart/messenger/services/EmojiService.java | 26 ---------------------- 1 file changed, 26 deletions(-) delete mode 100644 src/main/java/de/pixart/messenger/services/EmojiService.java (limited to 'src/main') diff --git a/src/main/java/de/pixart/messenger/services/EmojiService.java b/src/main/java/de/pixart/messenger/services/EmojiService.java deleted file mode 100644 index f76cf5a4b..000000000 --- a/src/main/java/de/pixart/messenger/services/EmojiService.java +++ /dev/null @@ -1,26 +0,0 @@ -package de.pixart.messenger.services; - -import android.content.Context; -import android.os.Build; - -import androidx.emoji.bundled.BundledEmojiCompatConfig; -import androidx.emoji.text.EmojiCompat; - -public class EmojiService { - - private final Context context; - - public EmojiService(Context context) { - this.context = context; - } - - public void init(boolean useBundledEmoji) { - BundledEmojiCompatConfig config = new BundledEmojiCompatConfig(context); - //On recent Androids we assume to have the latest emojis - //there are some annoying bugs with emoji compat that make it a safer choice not to use it when possible - // a) the text preview has annoying glitches when the cut of text contains emojis (the emoji will be half visible) - // b) can trigger a hardware rendering bug https://issuetracker.google.com/issues/67102093 - config.setReplaceAll(useBundledEmoji && Build.VERSION.SDK_INT < Build.VERSION_CODES.O); - EmojiCompat.init(config); - } -} \ No newline at end of file -- cgit v1.2.3