diff --git a/app/src/main/java/io/legado/app/model/webbook/BookList.kt b/app/src/main/java/io/legado/app/model/webbook/BookList.kt
index cdd91a146..ba28bf0d6 100644
--- a/app/src/main/java/io/legado/app/model/webbook/BookList.kt
+++ b/app/src/main/java/io/legado/app/model/webbook/BookList.kt
@@ -62,7 +62,7 @@ object BookList {
val ruleKind = analyzeRule.splitSourceRule(bookListRule.kind ?: "")
val ruleLastChapter = analyzeRule.splitSourceRule(bookListRule.lastChapter ?: "")
val ruleWordCount = analyzeRule.splitSourceRule(bookListRule.wordCount ?: "")
- SourceDebug.printLog(bookSource.bookSourceUrl, 1, "列表书为${collections.size}")
+ SourceDebug.printLog(bookSource.bookSourceUrl, 1, "列表数为${collections.size}")
for ((index, item) in collections.withIndex()) {
getSearchItem(
item,
diff --git a/app/src/main/java/io/legado/app/model/webbook/SourceDebug.kt b/app/src/main/java/io/legado/app/model/webbook/SourceDebug.kt
index 4cf38e520..ec7a81c38 100644
--- a/app/src/main/java/io/legado/app/model/webbook/SourceDebug.kt
+++ b/app/src/main/java/io/legado/app/model/webbook/SourceDebug.kt
@@ -19,8 +19,8 @@ class SourceDebug(private val webBook: WebBook, callback: Callback) {
private val startTime: Long = System.currentTimeMillis()
fun printLog(source: String?, state: Int, msg: String, print: Boolean = true, isHtml: Boolean = false) {
- if (!print) return
if (debugSource != source) return
+ if (!print) return
var printMsg = msg
if (isHtml) {
printMsg = printMsg.htmlFormat()
diff --git a/app/src/main/res/layout/activity_source_debug.xml b/app/src/main/res/layout/activity_source_debug.xml
index 7f8059f74..4a98208bd 100644
--- a/app/src/main/res/layout/activity_source_debug.xml
+++ b/app/src/main/res/layout/activity_source_debug.xml
@@ -16,8 +16,9 @@
+ android:layout_height="0dp"
+ app:layout_constraintTop_toBottomOf="@+id/title_bar"
+ app:layout_constraintBottom_toBottomOf="parent" />