Format with ktlint

Signed-off-by: Álvaro Brey Vilas <alvaro.brey@nextcloud.com>
This commit is contained in:
Álvaro Brey Vilas 2022-04-18 18:21:35 +02:00
parent 97d71d0383
commit 0def0a8af8
No known key found for this signature in database
GPG key ID: 2585783189A62105
5 changed files with 19 additions and 13 deletions

View file

@ -35,8 +35,8 @@ internal class FilesFilter(private val ocFileListAdapter: OCFileListAdapter) : F
for (file in ocFileListAdapter.allFiles) {
if (file.parentRemotePath == ocFileListAdapter.currentDirectory.remotePath &&
file.fileName.lowercase(Locale.getDefault()).contains(
constraint.toString().lowercase(Locale.getDefault())
) &&
constraint.toString().lowercase(Locale.getDefault())
) &&
!filteredFiles.contains(file)
) {
filteredFiles.add(file)

View file

@ -153,7 +153,7 @@ class OCFileListDelegate(
val fileDownloaderBinder = transferServiceGetter.fileDownloaderBinder
val fileUploaderBinder = transferServiceGetter.fileUploaderBinder
if (operationsServiceBinder != null && operationsServiceBinder.isSynchronizing(user, file)) {
//synchronizing
// synchronizing
gridViewHolder.localFileIndicator.setImageResource(R.drawable.ic_synchronizing)
gridViewHolder.localFileIndicator.visibility = View.VISIBLE
} else if (fileDownloaderBinder != null && fileDownloaderBinder.isDownloading(user, file)) {
@ -161,7 +161,7 @@ class OCFileListDelegate(
gridViewHolder.localFileIndicator.setImageResource(R.drawable.ic_synchronizing)
gridViewHolder.localFileIndicator.visibility = View.VISIBLE
} else if (fileUploaderBinder != null && fileUploaderBinder.isUploading(user, file)) {
//uploading
// uploading
gridViewHolder.localFileIndicator.setImageResource(R.drawable.ic_synchronizing)
gridViewHolder.localFileIndicator.visibility = View.VISIBLE
} else if (file.etagInConflict != null) {

View file

@ -27,9 +27,11 @@ import androidx.recyclerview.widget.RecyclerView
import com.elyeproj.loaderviewlibrary.LoaderImageView
import com.owncloud.android.databinding.GridImageBinding
internal class OCFileListGridImageViewHolder(var binding: GridImageBinding) : RecyclerView.ViewHolder(
binding.root
), ListGridImageViewHolder {
internal class OCFileListGridImageViewHolder(var binding: GridImageBinding) :
RecyclerView.ViewHolder(
binding.root
),
ListGridImageViewHolder {
override val thumbnail: ImageView
get() = binding.thumbnail
override val shimmerThumbnail: LoaderImageView

View file

@ -28,9 +28,11 @@ import androidx.recyclerview.widget.RecyclerView
import com.elyeproj.loaderviewlibrary.LoaderImageView
import com.owncloud.android.databinding.GridItemBinding
internal class OCFileListGridItemViewHolder(var binding: GridItemBinding) : RecyclerView.ViewHolder(
binding.root
), ListGridItemViewHolder {
internal class OCFileListGridItemViewHolder(var binding: GridItemBinding) :
RecyclerView.ViewHolder(
binding.root
),
ListGridItemViewHolder {
override val fileName: TextView
get() = binding.Filename
override val thumbnail: ImageView

View file

@ -29,9 +29,11 @@ import com.elyeproj.loaderviewlibrary.LoaderImageView
import com.owncloud.android.databinding.ListItemBinding
import com.owncloud.android.ui.AvatarGroupLayout
internal class OCFileListItemViewHolder(private var binding: ListItemBinding) : RecyclerView.ViewHolder(
binding.root
), ListItemViewHolder {
internal class OCFileListItemViewHolder(private var binding: ListItemBinding) :
RecyclerView.ViewHolder(
binding.root
),
ListItemViewHolder {
override val fileSize: TextView
get() = binding.fileSize
override val fileSizeSeparator: View