diff --git a/owncloudApp/src/main/java/com/owncloud/android/presentation/adapters/transfers/TransfersAdapter.kt b/owncloudApp/src/main/java/com/owncloud/android/presentation/adapters/transfers/TransfersAdapter.kt index d651fabb962..2e2d418a96a 100644 --- a/owncloudApp/src/main/java/com/owncloud/android/presentation/adapters/transfers/TransfersAdapter.kt +++ b/owncloudApp/src/main/java/com/owncloud/android/presentation/adapters/transfers/TransfersAdapter.kt @@ -111,9 +111,9 @@ class TransfersAdapter( thumbnail ) val parentActivity = holder.itemView.context as FileActivity - if (fakeFileToCheatThumbnailsCacheManagerInterface.isImage - && fakeFileToCheatThumbnailsCacheManagerInterface.remoteId != null - && transfer.status == TransferStatus.TRANSFER_SUCCEEDED + if (fakeFileToCheatThumbnailsCacheManagerInterface.isImage && + fakeFileToCheatThumbnailsCacheManagerInterface.remoteId != null && + transfer.status == TransferStatus.TRANSFER_SUCCEEDED ) { // Thumbnail in cache? var thumbnailImage = ThumbnailsCacheManager @@ -182,7 +182,7 @@ class TransfersAdapter( } else if (transfer.status == TransferStatus.TRANSFER_FAILED) { uploadRightButton.apply { setImageResource(R.drawable.ic_action_delete_grey) - setOnClickListener{ + setOnClickListener { delete(transfer.id!!) } }