mirror of
https://codeberg.org/tom79/Fedilab.git
synced 2024-12-22 16:50:04 +02:00
Fix some crashes
This commit is contained in:
parent
57b5fb6f8c
commit
6c31f1f4a6
1 changed files with 3 additions and 3 deletions
|
@ -76,9 +76,9 @@ class RecyclerViewThreadLines(context: Context, private val lineInfoList: List<L
|
||||||
var lineBottom = view.bottom.toFloat() - view.height / 2
|
var lineBottom = view.bottom.toFloat() - view.height / 2
|
||||||
|
|
||||||
// if below status has a full line for current level, extend the line to the bottom
|
// if below status has a full line for current level, extend the line to the bottom
|
||||||
if (i < childCount - 1) {
|
if (i < lineInfoList.lastIndex - 1) {
|
||||||
if (i < lineInfoList.lastIndex - 1) {
|
val nextLineInfo = lineInfoList[i + 1]
|
||||||
val nextLineInfo = lineInfoList[i + 1]
|
if (level >= nextLineInfo.fullLinesStart && level <= nextLineInfo.fullLinesEnd) {
|
||||||
lineBottom = view.bottom.toFloat()
|
lineBottom = view.bottom.toFloat()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue