Fixed renamed file
This commit is contained in:
@@ -969,11 +969,11 @@ class MainActivity : AppCompatActivity() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
Mode.DOWNLOAD -> {
|
Mode.DOWNLOAD -> {
|
||||||
val downloads = getDownloadDirectory(this@MainActivity)?.listFiles()?.filter { file ->
|
val downloads = getDownloadDirectory(this@MainActivity).listFiles().filter { file ->
|
||||||
file.isDirectory && (file.name!!.toIntOrNull() != null) && file.findFile(".metadata") != null
|
file.isDirectory && (file.name!!.toIntOrNull() != null) && file.findFile(".metadata") != null
|
||||||
}?.map {
|
}.map {
|
||||||
it.name!!.toInt()
|
it.name!!.toInt()
|
||||||
}?: listOf()
|
}
|
||||||
|
|
||||||
when {
|
when {
|
||||||
query.isEmpty() -> downloads.apply {
|
query.isEmpty() -> downloads.apply {
|
||||||
|
|||||||
Reference in New Issue
Block a user