EmojiService: use replaceAll=false on android 8
This commit is contained in:
parent
88a7186ace
commit
3782a6fac6
|
@ -21,7 +21,11 @@ public class EmojiService {
|
||||||
|
|
||||||
public void init() {
|
public void init() {
|
||||||
BundledEmojiCompatConfig config = new BundledEmojiCompatConfig(context);
|
BundledEmojiCompatConfig config = new BundledEmojiCompatConfig(context);
|
||||||
config.setReplaceAll(true);
|
//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(Build.VERSION.SDK_INT < Build.VERSION_CODES.O);
|
||||||
EmojiCompat.init(config);
|
EmojiCompat.init(config);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -46,6 +46,7 @@ public class EmojiService {
|
||||||
//there are some annoying bugs with emoji compat that make it a safer choice not to use it when possible
|
//there are some annoying bugs with emoji compat that make it a safer choice not to use it when possible
|
||||||
// a) when using the ondemand emoji font (play store) flags don’t work
|
// a) when using the ondemand emoji font (play store) flags don’t work
|
||||||
// b) the text preview has annoying glitches when the cut of text contains emojis (the emoji will be half visible)
|
// b) the text preview has annoying glitches when the cut of text contains emojis (the emoji will be half visible)
|
||||||
|
// c) can trigger a hardware rendering bug https://issuetracker.google.com/issues/67102093
|
||||||
fontRequestEmojiCompatConfig.setReplaceAll(Build.VERSION.SDK_INT < Build.VERSION_CODES.O);
|
fontRequestEmojiCompatConfig.setReplaceAll(Build.VERSION.SDK_INT < Build.VERSION_CODES.O);
|
||||||
EmojiCompat.init(fontRequestEmojiCompatConfig);
|
EmojiCompat.init(fontRequestEmojiCompatConfig);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue