mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-05-03 15:26:27 +00:00
Switched from findLastCompletelyVisibleItemPosition() to findLastVisibleItemPosition() to prevent display issue if latest message is very long
This commit is contained in:
parent
93f1ef1aca
commit
37bf87e23e
1 changed files with 1 additions and 1 deletions
|
|
@ -42,7 +42,7 @@ internal abstract class ConversationScrollListener(private val mLayoutManager: L
|
||||||
override fun onScrolled(view: RecyclerView, dx: Int, dy: Int) {
|
override fun onScrolled(view: RecyclerView, dx: Int, dy: Int) {
|
||||||
val totalItemCount = mLayoutManager.itemCount
|
val totalItemCount = mLayoutManager.itemCount
|
||||||
val firstVisibleItemPosition: Int = mLayoutManager.findFirstVisibleItemPosition()
|
val firstVisibleItemPosition: Int = mLayoutManager.findFirstVisibleItemPosition()
|
||||||
val lastVisibleItemPosition: Int = mLayoutManager.findLastCompletelyVisibleItemPosition()
|
val lastVisibleItemPosition: Int = mLayoutManager.findLastVisibleItemPosition()
|
||||||
|
|
||||||
// If the total item count is zero and the previous isn't, assume the
|
// If the total item count is zero and the previous isn't, assume the
|
||||||
// list is invalidated and should be reset back to initial state
|
// list is invalidated and should be reset back to initial state
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue