mirror of
https://github.com/gedoor/legado.git
synced 2024-09-03 09:55:00 +08:00
优化
This commit is contained in:
parent
a758de7cf4
commit
6f29c69855
@ -11,6 +11,7 @@ import io.legado.app.R
|
||||
import io.legado.app.constant.AppLog
|
||||
import io.legado.app.constant.PreferKey
|
||||
import io.legado.app.data.entities.Bookmark
|
||||
import io.legado.app.help.book.isImage
|
||||
import io.legado.app.help.config.AppConfig
|
||||
import io.legado.app.help.config.ReadBookConfig
|
||||
import io.legado.app.lib.theme.accentColor
|
||||
@ -147,7 +148,7 @@ class ContentTextView(context: Context, attrs: AttributeSet?) : View(context, at
|
||||
val lineBase = textLine.lineBase + relativeOffset
|
||||
val lineBottom = textLine.lineBottom + relativeOffset
|
||||
drawChars(canvas, textPage, textLine, lineTop, lineBase, lineBottom)
|
||||
if (ReadBookConfig.underline) {
|
||||
if (ReadBookConfig.underline && ReadBook.book?.isImage != true) {
|
||||
drawUnderline(canvas, textLine, lineBottom)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user