mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-02-04 13:07:31 +01:00
Ensure some additional footer space if LTR next to RTL and vice versa
Change-Id: I139fd3ab32cf959d4e1a98767d2169d7b0d27a3a
This commit is contained in:
parent
5eb78ae95a
commit
b5e3a83ff2
@ -65,7 +65,7 @@ class FooteredTextView @JvmOverloads constructor(
|
||||
val widthLastLine = layout.getLineWidth(lastLine)
|
||||
|
||||
// Required width if putting footer in the same line as the last line
|
||||
val widthWithHorizontalFooter = (if (looksLikeRtl == viewIsRtl) widthLastLine else maxLineWidth) + footerWidth
|
||||
val widthWithHorizontalFooter = (if (looksLikeRtl == viewIsRtl) widthLastLine else (maxLineWidth + 4*resources.displayMetrics.density)) + footerWidth
|
||||
|
||||
// Is there space for a horizontal footer?
|
||||
if (widthWithHorizontalFooter <= widthLimit) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user