优化
This commit is contained in:
1 parent
e39105f781
commit
e268d342bc
1 file changed
+6
-1
@@ -324,7 +324,12 @@ class PageView(context: Context) : FrameLayout(context) {
|
||||
text = readProgress
|
||||
}
|
||||
}
|
||||
tvTotalProgress1?.text = "${chapterIndex.plus(1)}/${chapterSize}"
|
||||
tvTotalProgress1?.apply {
|
||||
val progress = "${chapterIndex.plus(1)}/${chapterSize}"
|
||||
if (text != progress) {
|
||||
text = progress
|
||||
}
|
||||
}
|
||||
tvPageAndTotal?.text = "${index.plus(1)}/$pageSize $readProgress"
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user