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,
|
widgetDrawable = R.drawable.ic_bright_display_vector,
|
||||||
widgetColor = widgetColor,
|
widgetColor = widgetColor,
|
||||||
widgetAlpha = widgetAlpha,
|
widgetAlpha = widgetAlpha,
|
||||||
onSliderChanged = {
|
onSliderChanged = viewModel::changeAlpha,
|
||||||
viewModel.changeAlpha(it)
|
onColorPressed = ::pickBackgroundColor,
|
||||||
},
|
onSavePressed = ::saveConfig
|
||||||
onColorPressed = {
|
|
||||||
pickBackgroundColor()
|
|
||||||
},
|
|
||||||
onSavePressed = {
|
|
||||||
saveConfig()
|
|
||||||
}
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue