From 1444ee663900e5f29070cc5a67ecbedea08b160c Mon Sep 17 00:00:00 2001 From: kunfei Date: Mon, 2 Sep 2019 14:51:09 +0800 Subject: [PATCH] up --- app/src/main/java/io/legado/app/help/BookHelp.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/io/legado/app/help/BookHelp.kt b/app/src/main/java/io/legado/app/help/BookHelp.kt index 187064ed8..15e2b5c81 100644 --- a/app/src/main/java/io/legado/app/help/BookHelp.kt +++ b/app/src/main/java/io/legado/app/help/BookHelp.kt @@ -106,8 +106,8 @@ object BookHelp { } var similarity = 0F var newIndex = index - val start = max(index - 10, 0) - val end = min(index + 10, chapters.lastIndex) + val start = max(index - 20, 0) + val end = min(index + 20, chapters.lastIndex) if (start < end) { for (i in start..end) { val s = title.similarity(chapters[i].title)