updating commons, gradle, kotlin, sdk to 29

This commit is contained in:
tibbi
2019-12-31 10:36:05 +01:00
parent 8aa787fba3
commit 21dfb0976d
3 changed files with 7 additions and 7 deletions

View File

@ -53,7 +53,7 @@ class MyWidgetProvider : AppWidgetProvider() {
private fun toggleFlashlight(context: Context, intent: Intent) {
if (intent.extras?.containsKey(IS_ENABLED) == true) {
val enable = intent.extras.getBoolean(IS_ENABLED)
val enable = intent.extras!!.getBoolean(IS_ENABLED)
val widgetBgColor = context.config.widgetBgColor
val alpha = Color.alpha(widgetBgColor)
val selectedColor = if (enable) widgetBgColor else Color.WHITE