mirror of
https://github.com/SimpleMobileTools/Simple-Calculator.git
synced 2024-12-24 22:21:33 +01:00
update Commons to 3.0.20
This commit is contained in:
parent
e2f1593be7
commit
a13c38394b
@ -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'
|
||||
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
@ -55,6 +55,7 @@ class MainActivity : SimpleActivity(), Calculator {
|
||||
AutofitHelper.create(result)
|
||||
AutofitHelper.create(formula)
|
||||
storeStateVariables()
|
||||
updateViewColors(calculator_holder, config.textColor)
|
||||
}
|
||||
|
||||
override fun onResume() {
|
||||
|
Loading…
Reference in New Issue
Block a user