diff --git a/app/src/main/java/io/legado/app/ui/book/source/manage/BookSourceActivity.kt b/app/src/main/java/io/legado/app/ui/book/source/manage/BookSourceActivity.kt index b16753e0a..4db5082bd 100644 --- a/app/src/main/java/io/legado/app/ui/book/source/manage/BookSourceActivity.kt +++ b/app/src/main/java/io/legado/app/ui/book/source/manage/BookSourceActivity.kt @@ -44,6 +44,7 @@ import io.legado.app.utils.viewbindingdelegate.viewBinding import kotlinx.coroutines.* import kotlinx.coroutines.flow.* import java.io.File +import kotlin.math.min class BookSourceActivity : VMBaseActivity(), PopupMenu.OnMenuItemClickListener, @@ -457,16 +458,19 @@ class BookSourceActivity : VMBaseActivity (600 * (lastIndex + 1 - firstIndex) / min(AppConfig.threadCount,8)))) { + Debug.finishChecking() this.cancel() } }