adding a few Shared Theme related improvements

This commit is contained in:
tibbi 2020-02-16 22:58:10 +01:00
parent 836ca87383
commit c6085cabab
2 changed files with 7 additions and 3 deletions

View file

@ -7,7 +7,7 @@ buildscript {
propMinSdkVersion = 21
propTargetSdkVersion = propCompileSdkVersion
propVersionCode = 1
propVersionName = '5.22.10'
propVersionName = '5.22.13'
kotlin_version = '1.3.61'
}

View file

@ -21,7 +21,7 @@ abstract class BaseSplashActivity : AppCompatActivity() {
return
}
if (isThankYouInstalled() && baseConfig.appRunCount == 0) {
if (isThankYouInstalled()) {
getSharedTheme {
if (it != null) {
baseConfig.apply {
@ -32,9 +32,13 @@ abstract class BaseSplashActivity : AppCompatActivity() {
textColor = it.textColor
backgroundColor = it.backgroundColor
primaryColor = it.primaryColor
appIconColor = it.appIconColor
navigationBarColor = it.navigationBarColor
}
if (baseConfig.appIconColor != it.appIconColor) {
baseConfig.appIconColor = it.appIconColor
checkAppIconColor()
}
}
initActivity()
}