fix manga thumbnail loading bug

This commit is contained in:
Aria Moradi 2021-05-12 10:39:21 +04:30
parent b9ea8c5f74
commit 3a825f4f25

View File

@ -24,7 +24,7 @@ object CachedImageResponse {
private fun findFileNameStartingWith(directoryPath: String, fileName: String): String? {
File(directoryPath).listFiles().forEach { file ->
if (file.name.startsWith(fileName))
if (file.name.startsWith("$fileName."))
return "$directoryPath/${file.name}"
}
return null