pull/32/head
kunfei 5 years ago
parent c5dbbf7c95
commit 5e63cceb20
  1. 2
      app/src/main/java/io/legado/app/model/webbook/BookList.kt
  2. 2
      app/src/main/java/io/legado/app/model/webbook/SourceDebug.kt
  3. 5
      app/src/main/res/layout/activity_source_debug.xml

@ -62,7 +62,7 @@ object BookList {
val ruleKind = analyzeRule.splitSourceRule(bookListRule.kind ?: "") val ruleKind = analyzeRule.splitSourceRule(bookListRule.kind ?: "")
val ruleLastChapter = analyzeRule.splitSourceRule(bookListRule.lastChapter ?: "") val ruleLastChapter = analyzeRule.splitSourceRule(bookListRule.lastChapter ?: "")
val ruleWordCount = analyzeRule.splitSourceRule(bookListRule.wordCount ?: "") 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()) { for ((index, item) in collections.withIndex()) {
getSearchItem( getSearchItem(
item, item,

@ -19,8 +19,8 @@ class SourceDebug(private val webBook: WebBook, callback: Callback) {
private val startTime: Long = System.currentTimeMillis() private val startTime: Long = System.currentTimeMillis()
fun printLog(source: String?, state: Int, msg: String, print: Boolean = true, isHtml: Boolean = false) { fun printLog(source: String?, state: Int, msg: String, print: Boolean = true, isHtml: Boolean = false) {
if (!print) return
if (debugSource != source) return if (debugSource != source) return
if (!print) return
var printMsg = msg var printMsg = msg
if (isHtml) { if (isHtml) {
printMsg = printMsg.htmlFormat() printMsg = printMsg.htmlFormat()

@ -16,8 +16,9 @@
<androidx.recyclerview.widget.RecyclerView <androidx.recyclerview.widget.RecyclerView
android:id="@+id/recycler_view" android:id="@+id/recycler_view"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="0dp"
app:layout_constraintTop_toBottomOf="@+id/title_bar" /> app:layout_constraintTop_toBottomOf="@+id/title_bar"
app:layout_constraintBottom_toBottomOf="parent" />
<io.legado.app.ui.widget.anima.RotateLoading <io.legado.app.ui.widget.anima.RotateLoading
android:id="@+id/rotate_loading" android:id="@+id/rotate_loading"

Loading…
Cancel
Save