fix: duplicate download
This commit is contained in:
parent
4ffe9d7505
commit
870cb751a4
4 changed files with 9 additions and 4 deletions
|
@ -369,7 +369,7 @@ class DownloadsManager(private val context: Context) {
|
|||
}
|
||||
|
||||
private const val RESERVED_CHARS = "|\\?*<\":>+[]/'"
|
||||
private fun String?.findValidName(): String {
|
||||
fun String?.findValidName(): String {
|
||||
return this?.filterNot { RESERVED_CHARS.contains(it) } ?: ""
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue