|
|
@ -226,7 +226,8 @@ class PageView(context: Context) : FrameLayout(context) { |
|
|
|
@SuppressLint("SetTextI18n") |
|
|
|
@SuppressLint("SetTextI18n") |
|
|
|
fun setProgress(textPage: TextPage) = textPage.apply { |
|
|
|
fun setProgress(textPage: TextPage) = textPage.apply { |
|
|
|
tvBookName?.text = ReadBook.book?.name |
|
|
|
tvBookName?.text = ReadBook.book?.name |
|
|
|
tvTitle?.text = textPage.title |
|
|
|
val hideTitle = ReadBookConfig.titleMode != 2 && textPage.index == 0 |
|
|
|
|
|
|
|
tvTitle?.text = if (hideTitle) "" else textPage.title |
|
|
|
tvPage?.text = "${index.plus(1)}/$pageSize" |
|
|
|
tvPage?.text = "${index.plus(1)}/$pageSize" |
|
|
|
tvTotalProgress?.text = readProgress |
|
|
|
tvTotalProgress?.text = readProgress |
|
|
|
tvPageAndTotal?.text = "${index.plus(1)}/$pageSize $readProgress" |
|
|
|
tvPageAndTotal?.text = "${index.plus(1)}/$pageSize $readProgress" |
|
|
|