pull/370/head
gedoor 4 years ago
parent c6ed6abc14
commit 1c855d4f4a
  1. 2
      app/src/main/java/io/legado/app/ui/book/read/ReadBookViewModel.kt

@ -189,7 +189,7 @@ class ReadBookViewModel(application: Application) : BaseViewModel(application) {
.getOrNull(0)?.let { .getOrNull(0)?.let {
if (it.name == name && (it.author == author || author == "")) { if (it.name == name && (it.author == author || author == "")) {
changeTo(it.toBook()) changeTo(it.toBook())
return@forEach return@execute
} }
} }
} catch (e: Exception) { } catch (e: Exception) {

Loading…
Cancel
Save