From acafc3dab13c2e9d2c97c85cb0840fcb06b66b9e Mon Sep 17 00:00:00 2001 From: kunfei Date: Sun, 17 Nov 2019 16:12:33 +0800 Subject: [PATCH] up --- app/src/main/java/io/legado/app/model/SourceDebug.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/io/legado/app/model/SourceDebug.kt b/app/src/main/java/io/legado/app/model/SourceDebug.kt index 7c6ed68ce..7f3c1dd3b 100644 --- a/app/src/main/java/io/legado/app/model/SourceDebug.kt +++ b/app/src/main/java/io/legado/app/model/SourceDebug.kt @@ -11,7 +11,7 @@ import java.text.SimpleDateFormat import java.util.* object SourceDebug { - var debugSource: String? = null + private var debugSource: String? = null var callback: Callback? = null private val tasks: CompositeCoroutine = CompositeCoroutine() @@ -50,6 +50,8 @@ object SourceDebug { } fun startDebug(rssSource: RssSource) { + cancelDebug() + debugSource = rssSource.sourceUrl printLog(debugSource, "︾开始解析RSS") Rss.getArticles(rssSource) .onSuccess { @@ -62,6 +64,7 @@ object SourceDebug { fun startDebug(webBook: WebBook, key: String) { cancelDebug() + debugSource = webBook.sourceUrl startTime = System.currentTimeMillis() when { key.isAbsUrl() -> {