mirror of
https://github.com/nextcloud/android.git
synced 2024-11-23 13:45:35 +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)
|
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)
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue