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 {
implementation 'com.simplemobiletools:commons:3.0.10'
implementation 'com.simplemobiletools:commons:3.0.20'
implementation 'me.grantland:autofittextview:0.2.1'
testImplementation 'junit:junit:4.12'

View File

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

View File

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