Skip to content

Commit 7bc3fb7

Browse files
committed
update commons to 3.0.12
1 parent 86b438a commit 7bc3fb7

2 files changed

Lines changed: 3 additions & 8 deletions

File tree

app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ ext {
4646
}
4747

4848
dependencies {
49-
implementation 'com.simplemobiletools:commons:3.0.10'
49+
implementation 'com.simplemobiletools:commons:3.0.12'
5050

5151
debugImplementation "com.squareup.leakcanary:leakcanary-android:$leakCanaryVersion"
5252
releaseImplementation "com.squareup.leakcanary:leakcanary-android-no-op:$leakCanaryVersion"
Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
package com.simplemobiletools.draw
22

33
import android.app.Application
4+
import com.simplemobiletools.commons.extensions.checkUseEnglish
45
import com.simplemobiletools.draw.BuildConfig.USE_LEAK_CANARY
5-
import com.simplemobiletools.draw.extensions.config
66
import com.squareup.leakcanary.LeakCanary
7-
import java.util.*
87

98
class App : Application() {
109
override fun onCreate() {
@@ -16,10 +15,6 @@ class App : Application() {
1615
LeakCanary.install(this)
1716
}
1817

19-
if (config.useEnglish) {
20-
val conf = resources.configuration
21-
conf.locale = Locale.ENGLISH
22-
resources.updateConfiguration(conf, resources.displayMetrics)
23-
}
18+
checkUseEnglish()
2419
}
2520
}

0 commit comments

Comments
 (0)