update commons to 3.0.12
This commit is contained in:
parent
86b438a26f
commit
7bc3fb7197
|
@ -46,7 +46,7 @@ ext {
|
|||
}
|
||||
|
||||
dependencies {
|
||||
implementation 'com.simplemobiletools:commons:3.0.10'
|
||||
implementation 'com.simplemobiletools:commons:3.0.12'
|
||||
|
||||
debugImplementation "com.squareup.leakcanary:leakcanary-android:$leakCanaryVersion"
|
||||
releaseImplementation "com.squareup.leakcanary:leakcanary-android-no-op:$leakCanaryVersion"
|
||||
|
|
|
@ -1,10 +1,9 @@
|
|||
package com.simplemobiletools.draw
|
||||
|
||||
import android.app.Application
|
||||
import com.simplemobiletools.commons.extensions.checkUseEnglish
|
||||
import com.simplemobiletools.draw.BuildConfig.USE_LEAK_CANARY
|
||||
import com.simplemobiletools.draw.extensions.config
|
||||
import com.squareup.leakcanary.LeakCanary
|
||||
import java.util.*
|
||||
|
||||
class App : Application() {
|
||||
override fun onCreate() {
|
||||
|
@ -16,10 +15,6 @@ class App : Application() {
|
|||
LeakCanary.install(this)
|
||||
}
|
||||
|
||||
if (config.useEnglish) {
|
||||
val conf = resources.configuration
|
||||
conf.locale = Locale.ENGLISH
|
||||
resources.updateConfiguration(conf, resources.displayMetrics)
|
||||
}
|
||||
checkUseEnglish()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue