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