mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-27 06:29:54 +00:00
Account for horizontal padding when calculating available footer space.
This commit is contained in:
committed by
Nicholas Tinsley
parent
617369dbc0
commit
3a465cc56b
@@ -90,7 +90,7 @@ class V2FooterPositionDelegate private constructor(
|
||||
return false
|
||||
}
|
||||
|
||||
val availableWidth = maxWidth - lastLineWidth
|
||||
val availableWidth = maxWidth - lastLineWidth - (horizontalFooterPadding * 2)
|
||||
if (body.lineCount == 1 && availableWidth > (footerWidth + 8.dp)) {
|
||||
displayAtEndOfBody()
|
||||
return true
|
||||
|
||||
Reference in New Issue
Block a user