Fix kotlin spotless check

Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
alperozturk 2023-10-27 12:09:23 +02:00
parent 1b0b5d737d
commit 93ba663480
No known key found for this signature in database
GPG key ID: 4E577DC593B59BDF
2 changed files with 13 additions and 6 deletions

View file

@ -61,9 +61,11 @@ class StoragePathAdapter(
fun chosenPath(path: String) fun chosenPath(path: String)
} }
inner class StoragePathViewHolder(var binding: StoragePathItemBinding) : RecyclerView.ViewHolder( inner class StoragePathViewHolder(var binding: StoragePathItemBinding) :
binding.root RecyclerView.ViewHolder(
), View.OnClickListener { binding.root
),
View.OnClickListener {
init { init {
binding.root.setOnClickListener(this) binding.root.setOnClickListener(this)
} }

View file

@ -40,8 +40,11 @@ import com.owncloud.android.utils.theme.ViewThemeUtils
import java.io.File import java.io.File
import javax.inject.Inject import javax.inject.Inject
class LocalStoragePathPickerDialogFragment : DialogFragment(), DialogInterface.OnClickListener, class LocalStoragePathPickerDialogFragment :
StoragePathAdapterListener, Injectable { DialogFragment(),
DialogInterface.OnClickListener,
StoragePathAdapterListener,
Injectable {
@Inject @Inject
lateinit var viewThemeUtils: ViewThemeUtils lateinit var viewThemeUtils: ViewThemeUtils
@ -96,7 +99,9 @@ class LocalStoragePathPickerDialogFragment : DialogFragment(), DialogInterface.O
val storagePathItems: MutableList<StoragePathItem> = ArrayList() val storagePathItems: MutableList<StoragePathItem> = ArrayList()
for (standardDirectory in StandardDirectory.getStandardDirectories()) { for (standardDirectory in StandardDirectory.getStandardDirectories()) {
addIfExists( addIfExists(
storagePathItems, standardDirectory.icon, getString(standardDirectory.displayName), storagePathItems,
standardDirectory.icon,
getString(standardDirectory.displayName),
Environment.getExternalStoragePublicDirectory(standardDirectory.name).absolutePath Environment.getExternalStoragePublicDirectory(standardDirectory.name).absolutePath
) )
} }