mirror of
https://github.com/SimpleMobileTools/Simple-Flashlight.git
synced 2025-06-05 21:59:19 +02:00
updating commons, gradle, kotlin, sdk to 29
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user