Use method references in WidgetBrightDisplayConfigureActivity
This commit is contained in:
parent
8ea675a743
commit
6893454559
|
@ -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
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue