Using host variable to make the code nicer
This commit is contained in:
parent
3e1c110343
commit
db17d02f36
@ -72,9 +72,9 @@ class OtherSessionsController @Inject constructor(
|
||||
sessionDescription(description)
|
||||
sessionDescriptionDrawable(descriptionDrawable)
|
||||
sessionDescriptionColor(descriptionColor)
|
||||
stringProvider(this@OtherSessionsController.stringProvider)
|
||||
colorProvider(this@OtherSessionsController.colorProvider)
|
||||
drawableProvider(this@OtherSessionsController.drawableProvider)
|
||||
stringProvider(host.stringProvider)
|
||||
colorProvider(host.colorProvider)
|
||||
drawableProvider(host.drawableProvider)
|
||||
selected(device.isSelected)
|
||||
clickListener { device.deviceInfo.deviceId?.let { host.callback?.onItemClicked(it) } }
|
||||
onLongClickListener(View.OnLongClickListener {
|
||||
|
Loading…
Reference in New Issue
Block a user