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)
}
inner class StoragePathViewHolder(var binding: StoragePathItemBinding) : RecyclerView.ViewHolder(
binding.root
), View.OnClickListener {
inner class StoragePathViewHolder(var binding: StoragePathItemBinding) :
RecyclerView.ViewHolder(
binding.root
),
View.OnClickListener {
init {
binding.root.setOnClickListener(this)
}

View file

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