pull/32/head
kunfei 5 years ago
parent 70e6b759ad
commit 1444ee6639
  1. 4
      app/src/main/java/io/legado/app/help/BookHelp.kt

@ -106,8 +106,8 @@ object BookHelp {
} }
var similarity = 0F var similarity = 0F
var newIndex = index var newIndex = index
val start = max(index - 10, 0) val start = max(index - 20, 0)
val end = min(index + 10, chapters.lastIndex) val end = min(index + 20, chapters.lastIndex)
if (start < end) { if (start < end) {
for (i in start..end) { for (i in start..end) {
val s = title.similarity(chapters[i].title) val s = title.similarity(chapters[i].title)

Loading…
Cancel
Save