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