diff --git a/app/src/main/kotlin/com/simplemobiletools/flashlight/activities/WidgetTorchConfigureActivity.kt b/app/src/main/kotlin/com/simplemobiletools/flashlight/activities/WidgetTorchConfigureActivity.kt index 9b9f5bb..d930501 100644 --- a/app/src/main/kotlin/com/simplemobiletools/flashlight/activities/WidgetTorchConfigureActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/flashlight/activities/WidgetTorchConfigureActivity.kt @@ -48,15 +48,9 @@ class WidgetTorchConfigureActivity : ComponentActivity() { widgetDrawable = R.drawable.ic_flashlight_vector, widgetColor = widgetColor, widgetAlpha = widgetAlpha, - onSliderChanged = { - viewModel.changeAlpha(it) - }, - onColorPressed = { - pickBackgroundColor() - }, - onSavePressed = { - saveConfig() - } + onSliderChanged = viewModel::changeAlpha, + onColorPressed = ::pickBackgroundColor, + onSavePressed = ::saveConfig ) } }