pull/1606/head
kunfei 3 years ago
parent 0bb17ffc82
commit 7169c62369
  1. 2
      app/src/main/java/io/legado/app/data/entities/BookChapter.kt
  2. 8
      app/src/main/java/io/legado/app/help/ContentProcessor.kt

@ -74,7 +74,7 @@ data class BookChapter(
@Suppress("unused") @Suppress("unused")
fun getDisplayTitle( fun getDisplayTitle(
replaceRules: List<ReplaceRule>? = null, replaceRules: Array<ReplaceRule>? = null,
useReplace: Boolean = true, useReplace: Boolean = true,
chineseConvert: Boolean = true, chineseConvert: Boolean = true,
): String { ): String {

@ -57,13 +57,13 @@ class ContentProcessor private constructor(
} }
@Synchronized @Synchronized
fun getTitleReplaceRules(): List<ReplaceRule> { fun getTitleReplaceRules(): Array<ReplaceRule> {
return titleReplaceRules return titleReplaceRules.toTypedArray()
} }
@Synchronized @Synchronized
fun getContentReplaceRules(): List<ReplaceRule> { fun getContentReplaceRules(): Array<ReplaceRule> {
return contentReplaceRules return contentReplaceRules.toTypedArray()
} }
fun getContent( fun getContent(

Loading…
Cancel
Save