Using host variable to make the code nicer

This commit is contained in:
Maxime NATUREL 2022-10-25 17:25:12 +02:00
parent 3e1c110343
commit db17d02f36
1 changed files with 3 additions and 3 deletions

View File

@ -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 {