Use method references in WidgetBrightDisplayConfigureActivity

This commit is contained in:
Ensar Sarajčić 2023-10-05 13:34:37 +02:00
parent 8ea675a743
commit 6893454559
1 changed files with 3 additions and 9 deletions

View File

@ -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
)
}
}