Loading build.gradle +1 −1 Original line number Diff line number Diff line Loading @@ -7,7 +7,7 @@ buildscript { propMinSdkVersion = 16 propTargetSdkVersion = propCompileSdkVersion propVersionCode = 1 propVersionName = '3.1.0' propVersionName = '3.1.1' kotlin_version = '1.2.0' support_libs = '27.0.2' } Loading commons/src/main/kotlin/com/simplemobiletools/commons/receivers/SharedThemeReceiver.kt +10 −6 Original line number Diff line number Diff line Loading @@ -17,17 +17,20 @@ class SharedThemeReceiver : BroadcastReceiver() { wasSharedThemeEverActivated = true context.getSharedTheme { textColor = it!!.textColor if (it != null) { textColor = it.textColor backgroundColor = it.backgroundColor primaryColor = it.primaryColor } } } } } else if (intent.action == MyContentProvider.SHARED_THEME_UPDATED) { context.baseConfig.apply { if (isUsingSharedTheme) { context.getSharedTheme { textColor = it!!.textColor if (it != null) { textColor = it.textColor backgroundColor = it.backgroundColor primaryColor = it.primaryColor } Loading @@ -36,3 +39,4 @@ class SharedThemeReceiver : BroadcastReceiver() { } } } } Loading
build.gradle +1 −1 Original line number Diff line number Diff line Loading @@ -7,7 +7,7 @@ buildscript { propMinSdkVersion = 16 propTargetSdkVersion = propCompileSdkVersion propVersionCode = 1 propVersionName = '3.1.0' propVersionName = '3.1.1' kotlin_version = '1.2.0' support_libs = '27.0.2' } Loading
commons/src/main/kotlin/com/simplemobiletools/commons/receivers/SharedThemeReceiver.kt +10 −6 Original line number Diff line number Diff line Loading @@ -17,17 +17,20 @@ class SharedThemeReceiver : BroadcastReceiver() { wasSharedThemeEverActivated = true context.getSharedTheme { textColor = it!!.textColor if (it != null) { textColor = it.textColor backgroundColor = it.backgroundColor primaryColor = it.primaryColor } } } } } else if (intent.action == MyContentProvider.SHARED_THEME_UPDATED) { context.baseConfig.apply { if (isUsingSharedTheme) { context.getSharedTheme { textColor = it!!.textColor if (it != null) { textColor = it.textColor backgroundColor = it.backgroundColor primaryColor = it.primaryColor } Loading @@ -36,3 +39,4 @@ class SharedThemeReceiver : BroadcastReceiver() { } } } }