From bce1e7a579ba217bf3a7d06ebe965125f23c6eda Mon Sep 17 00:00:00 2001 From: tibbi Date: Tue, 1 May 2018 15:17:34 +0200 Subject: [PATCH] update commons to 3.21.2 --- app/build.gradle | 2 +- .../thankyou/activities/MainActivity.kt | 2 +- .../thankyou/activities/SettingsActivity.kt | 16 ---------------- 3 files changed, 2 insertions(+), 18 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 5a7115b..4f19b3b 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -41,7 +41,7 @@ android { } dependencies { - implementation 'com.simplemobiletools:commons:3.19.26' + implementation 'com.simplemobiletools:commons:3.21.2' } Properties props = new Properties() diff --git a/app/src/main/kotlin/com/simplemobiletools/thankyou/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/thankyou/activities/MainActivity.kt index dbeb9b4..09a81ee 100644 --- a/app/src/main/kotlin/com/simplemobiletools/thankyou/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/thankyou/activities/MainActivity.kt @@ -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() } diff --git a/app/src/main/kotlin/com/simplemobiletools/thankyou/activities/SettingsActivity.kt b/app/src/main/kotlin/com/simplemobiletools/thankyou/activities/SettingsActivity.kt index 693bc6b..f51eff1 100644 --- a/app/src/main/kotlin/com/simplemobiletools/thankyou/activities/SettingsActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/thankyou/activities/SettingsActivity.kt @@ -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()