mirror of
https://github.com/gedoor/legado.git
synced 2024-09-03 09:55:00 +08:00
优化
This commit is contained in:
parent
11771db036
commit
a758de7cf4
@ -675,12 +675,12 @@ object ChapterProvider {
|
||||
}
|
||||
|
||||
/**
|
||||
* 更新View尺寸
|
||||
* 更新View尺寸,height减去1dp防止下划线无法画全
|
||||
*/
|
||||
fun upViewSize(width: Int, height: Int) {
|
||||
if (width > 0 && height > 0 && (width != viewWidth || height != viewHeight)) {
|
||||
viewWidth = width
|
||||
viewHeight = height
|
||||
viewHeight = height - 1.dpToPx()
|
||||
upLayout()
|
||||
postEvent(EventBus.UP_CONFIG, true)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user