mirror of
https://github.com/SimpleMobileTools/Simple-Keyboard.git
synced 2025-02-16 11:50:41 +01:00
Added if statement in application onCreate()
This commit is contained in:
parent
fa4e38e94e
commit
b14ad588d3
@ -4,11 +4,14 @@ import android.app.Application
|
|||||||
import androidx.emoji2.bundled.BundledEmojiCompatConfig
|
import androidx.emoji2.bundled.BundledEmojiCompatConfig
|
||||||
import androidx.emoji2.text.EmojiCompat
|
import androidx.emoji2.text.EmojiCompat
|
||||||
import com.simplemobiletools.commons.extensions.checkUseEnglish
|
import com.simplemobiletools.commons.extensions.checkUseEnglish
|
||||||
|
import com.simplemobiletools.keyboard.extensions.isDeviceLocked
|
||||||
|
|
||||||
class App : Application() {
|
class App : Application() {
|
||||||
override fun onCreate() {
|
override fun onCreate() {
|
||||||
super.onCreate()
|
super.onCreate()
|
||||||
checkUseEnglish()
|
if (!isDeviceLocked) {
|
||||||
|
checkUseEnglish()
|
||||||
|
}
|
||||||
setupEmojiCompat()
|
setupEmojiCompat()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user