mirror of
https://github.com/nextcloud/android.git
synced 2024-11-23 05:35:39 +03:00
Fix kotlin spotless check
Signed-off-by: alperozturk <alper_ozturk@proton.me>
This commit is contained in:
parent
1b0b5d737d
commit
93ba663480
2 changed files with 13 additions and 6 deletions
|
@ -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)
|
||||
}
|
||||
|
|
|
@ -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
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue