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")
fun getDisplayTitle(
replaceRules: List<ReplaceRule>? = null,
replaceRules: Array<ReplaceRule>? = null,
useReplace: Boolean = true,
chineseConvert: Boolean = true,
): String {

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

Loading…
Cancel
Save