use class variable fileIcon instead binding.fileIcon

this shouldn't make a difference. class variable was unused before..

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
Marcel Hibbe 2023-02-10 12:34:31 +01:00
parent 5d83ff8c98
commit 29a9b0e381
No known key found for this signature in database
GPG Key ID: C793F8B59F43CE7B

View File

@ -96,13 +96,13 @@ class RemoteFileBrowserItemsListViewHolder(
val path = ApiUtils.getUrlForFilePreviewWithRemotePath(
currentUser.baseUrl,
item.path,
binding.fileIcon.context.resources.getDimensionPixelSize(R.dimen.small_item_height)
fileIcon.context.resources.getDimensionPixelSize(R.dimen.small_item_height)
)
if (path.isNotEmpty()) {
binding.fileIcon.loadImage(path, currentUser, placeholder)
fileIcon.loadImage(path, currentUser, placeholder)
}
} else {
binding.fileIcon.setImageDrawable(placeholder)
fileIcon.setImageDrawable(placeholder)
}
binding.filenameTextView.text = item.displayName