mirror of
https://github.com/SimpleMobileTools/Simple-Keyboard.git
synced 2025-04-13 01:42:34 +02:00
20 lines
505 B
Kotlin
20 lines
505 B
Kotlin
package com.simplemobiletools.keyboard
|
|
|
|
import android.app.Application
|
|
import androidx.emoji2.bundled.BundledEmojiCompatConfig
|
|
import androidx.emoji2.text.EmojiCompat
|
|
import com.simplemobiletools.commons.extensions.checkUseEnglish
|
|
|
|
class App : Application() {
|
|
override fun onCreate() {
|
|
super.onCreate()
|
|
checkUseEnglish()
|
|
setupEmojiCompat()
|
|
}
|
|
|
|
private fun setupEmojiCompat() {
|
|
val config = BundledEmojiCompatConfig(this)
|
|
EmojiCompat.init(config)
|
|
}
|
|
}
|