mirror of
https://github.com/SimpleMobileTools/Simple-Flashlight.git
synced 2025-02-17 04:10:46 +01:00
Use method references in WidgetTorchConfigureActivity
This commit is contained in:
parent
6372066b8e
commit
8ea675a743
@ -48,15 +48,9 @@ class WidgetTorchConfigureActivity : ComponentActivity() {
|
|||||||
widgetDrawable = R.drawable.ic_flashlight_vector,
|
widgetDrawable = R.drawable.ic_flashlight_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…
x
Reference in New Issue
Block a user