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.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()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue