mirror of
https://github.com/gedoor/legado.git
synced 2024-08-30 09:23:26 +08:00
优化
This commit is contained in:
parent
8e28ae1c4a
commit
13891e8037
@ -320,7 +320,7 @@ class PageView(context: Context) : FrameLayout(context) {
|
|||||||
tvPageAndTotal?.setTextIfNotEqual("${index.plus(1)}/$pageSize $readProgress")
|
tvPageAndTotal?.setTextIfNotEqual("${index.plus(1)}/$pageSize $readProgress")
|
||||||
tvPage?.setTextIfNotEqual("${index.plus(1)}/$pageSize")
|
tvPage?.setTextIfNotEqual("${index.plus(1)}/$pageSize")
|
||||||
} else {
|
} else {
|
||||||
val pageSizeInt = pageSize - 1
|
val pageSizeInt = pageSize
|
||||||
val pageSize = if (pageSizeInt <= 0) "-" else "~$pageSizeInt"
|
val pageSize = if (pageSizeInt <= 0) "-" else "~$pageSizeInt"
|
||||||
tvPageAndTotal?.setTextIfNotEqual("${index.plus(1)}/$pageSize $readProgress")
|
tvPageAndTotal?.setTextIfNotEqual("${index.plus(1)}/$pageSize $readProgress")
|
||||||
tvPage?.setTextIfNotEqual("${index.plus(1)}/$pageSize")
|
tvPage?.setTextIfNotEqual("${index.plus(1)}/$pageSize")
|
||||||
|
Loading…
Reference in New Issue
Block a user