From db17d02f36ad02b759d728827e801ea4a15702de Mon Sep 17 00:00:00 2001 From: Maxime NATUREL Date: Tue, 25 Oct 2022 17:25:12 +0200 Subject: [PATCH] Using host variable to make the code nicer --- .../settings/devices/v2/list/OtherSessionsController.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vector/src/main/java/im/vector/app/features/settings/devices/v2/list/OtherSessionsController.kt b/vector/src/main/java/im/vector/app/features/settings/devices/v2/list/OtherSessionsController.kt index 9193479b74..8d70552101 100644 --- a/vector/src/main/java/im/vector/app/features/settings/devices/v2/list/OtherSessionsController.kt +++ b/vector/src/main/java/im/vector/app/features/settings/devices/v2/list/OtherSessionsController.kt @@ -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 {