mirror of
https://github.com/nextcloud/android.git
synced 2024-11-23 13:45:35 +03:00
Format with ktlint
Signed-off-by: Álvaro Brey Vilas <alvaro.brey@nextcloud.com>
This commit is contained in:
parent
97d71d0383
commit
0def0a8af8
5 changed files with 19 additions and 13 deletions
|
@ -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)
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue