From b14ad588d32239dd97b5a94a21dd08b8c2d91e0e Mon Sep 17 00:00:00 2001 From: merkost Date: Tue, 30 May 2023 16:17:22 +1000 Subject: [PATCH] Added if statement in application onCreate() --- app/src/main/kotlin/com/simplemobiletools/keyboard/App.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/keyboard/App.kt b/app/src/main/kotlin/com/simplemobiletools/keyboard/App.kt index 442c5f3..55c2d87 100644 --- a/app/src/main/kotlin/com/simplemobiletools/keyboard/App.kt +++ b/app/src/main/kotlin/com/simplemobiletools/keyboard/App.kt @@ -4,11 +4,14 @@ import android.app.Application import androidx.emoji2.bundled.BundledEmojiCompatConfig import androidx.emoji2.text.EmojiCompat import com.simplemobiletools.commons.extensions.checkUseEnglish +import com.simplemobiletools.keyboard.extensions.isDeviceLocked class App : Application() { override fun onCreate() { super.onCreate() - checkUseEnglish() + if (!isDeviceLocked) { + checkUseEnglish() + } setupEmojiCompat() }