update commons to 3.0.12

This commit is contained in:
tibbi 2017-11-30 19:36:36 +01:00
parent 86b438a26f
commit 7bc3fb7197
2 changed files with 3 additions and 8 deletions

View File

@ -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"

View File

@ -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()
}
}