update commons to 3.21.2

This commit is contained in:
tibbi 2018-05-01 15:17:34 +02:00
parent 382b8abee0
commit bce1e7a579
3 changed files with 2 additions and 18 deletions

View File

@ -41,7 +41,7 @@ android {
}
dependencies {
implementation 'com.simplemobiletools:commons:3.19.26'
implementation 'com.simplemobiletools:commons:3.21.2'
}
Properties props = new Properties()

View File

@ -17,7 +17,7 @@ class MainActivity : SimpleActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
appLaunched()
appLaunched(BuildConfig.APPLICATION_ID)
checkWhatsNewDialog()
}

View File

@ -13,19 +13,14 @@ import kotlinx.android.synthetic.main.activity_settings.*
import java.util.*
class SettingsActivity : SimpleActivity() {
private var storedAppIconColor = 0
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_settings)
storeStateVariables()
}
override fun onResume() {
super.onResume()
checkAppIconColorChange(storedAppIconColor, BuildConfig.APPLICATION_ID)
setupCustomizeColors()
setupUseEnglish()
setupAvoidWhatsNew()
@ -33,17 +28,6 @@ class SettingsActivity : SimpleActivity() {
updateTextColors(settings_holder)
}
override fun onPause() {
super.onPause()
storeStateVariables()
}
private fun storeStateVariables() {
config.apply {
storedAppIconColor = appIconColor
}
}
private fun setupCustomizeColors() {
settings_customize_colors_holder.setOnClickListener {
startCustomizationActivity()