mirror of
https://github.com/mihonapp/mihon.git
synced 2025-11-01 06:47:56 +01:00
MangaSummaryView: Fix incomplete description on tablet ui (#6518)
This commit is contained in:
@@ -59,7 +59,9 @@ class MangaSummaryView @JvmOverloads constructor(
|
||||
doOnNextLayout {
|
||||
updateExpandState()
|
||||
}
|
||||
requestLayout()
|
||||
if (!isInLayout) {
|
||||
requestLayout()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -141,7 +143,10 @@ class MangaSummaryView @JvmOverloads constructor(
|
||||
}
|
||||
|
||||
override fun onMeasure(widthMeasureSpec: Int, heightMeasureSpec: Int) {
|
||||
if (!recalculateHeights) {
|
||||
// Wait until parent view has determined the exact width
|
||||
// because this affect the description line count
|
||||
val measureWidthFreely = MeasureSpec.getMode(widthMeasureSpec) != MeasureSpec.EXACTLY
|
||||
if (!recalculateHeights || measureWidthFreely) {
|
||||
super.onMeasure(widthMeasureSpec, heightMeasureSpec)
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user