Skip to content

Commit b14ad58

Browse files
committed
Added if statement in application onCreate()
1 parent fa4e38e commit b14ad58

File tree

1 file changed

+4
-1
lines changed
  • app/src/main/kotlin/com/simplemobiletools/keyboard

1 file changed

+4
-1
lines changed

app/src/main/kotlin/com/simplemobiletools/keyboard/App.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,14 @@ import android.app.Application
44
import androidx.emoji2.bundled.BundledEmojiCompatConfig
55
import androidx.emoji2.text.EmojiCompat
66
import com.simplemobiletools.commons.extensions.checkUseEnglish
7+
import com.simplemobiletools.keyboard.extensions.isDeviceLocked
78

89
class App : Application() {
910
override fun onCreate() {
1011
super.onCreate()
11-
checkUseEnglish()
12+
if (!isDeviceLocked) {
13+
checkUseEnglish()
14+
}
1215
setupEmojiCompat()
1316
}
1417

0 commit comments

Comments
 (0)