update Commons to 3.0.20

This commit is contained in:
tibbi 2017-12-01 14:32:45 +01:00
parent e2f1593be7
commit a13c38394b
3 changed files with 4 additions and 8 deletions

View File

@ -40,7 +40,7 @@ android {
} }
dependencies { dependencies {
implementation 'com.simplemobiletools:commons:3.0.10' implementation 'com.simplemobiletools:commons:3.0.20'
implementation 'me.grantland:autofittextview:0.2.1' implementation 'me.grantland:autofittextview:0.2.1'
testImplementation 'junit:junit:4.12' testImplementation 'junit:junit:4.12'

View File

@ -1,16 +1,11 @@
package com.simplemobiletools.calculator package com.simplemobiletools.calculator
import android.app.Application import android.app.Application
import com.simplemobiletools.calculator.extensions.config import com.simplemobiletools.commons.extensions.checkUseEnglish
import java.util.*
class App : Application() { class App : Application() {
override fun onCreate() { override fun onCreate() {
super.onCreate() super.onCreate()
if (config.useEnglish) { checkUseEnglish()
val conf = resources.configuration
conf.locale = Locale.ENGLISH
resources.updateConfiguration(conf, resources.displayMetrics)
}
} }
} }

View File

@ -55,6 +55,7 @@ class MainActivity : SimpleActivity(), Calculator {
AutofitHelper.create(result) AutofitHelper.create(result)
AutofitHelper.create(formula) AutofitHelper.create(formula)
storeStateVariables() storeStateVariables()
updateViewColors(calculator_holder, config.textColor)
} }
override fun onResume() { override fun onResume() {