pull/36/head
kunfei 5 years ago
parent 765a012332
commit 34536c91c0
  1. 4
      app/src/main/java/io/legado/app/help/storage/WebDavHelp.kt

@ -39,8 +39,8 @@ object WebDavHelp {
val url = getWebDavUrl() val url = getWebDavUrl()
val names = arrayListOf<String>() val names = arrayListOf<String>()
if (!url.isNullOrBlank() && initWebDav()) { if (!url.isNullOrBlank() && initWebDav()) {
val files = WebDav(url + "legado/").listFiles() var files = WebDav(url + "legado/").listFiles()
files.reversed() files = files.reversed()
for (index: Int in 0 until min(10, files.size)) { for (index: Int in 0 until min(10, files.size)) {
files[index].displayName?.let { files[index].displayName?.let {
names.add(it) names.add(it)

Loading…
Cancel
Save