Used more understandable kotlin methods
This commit is contained in:
parent
e8727b36c7
commit
9a42a3a2c6
1 changed files with 1 additions and 1 deletions
|
|
@ -608,7 +608,7 @@ class FeedFragment : BaseStateFragment<FeedState>() {
|
||||||
// state until the user scrolls them out of the visible area which causes a update/bind-call
|
// state until the user scrolls them out of the visible area which causes a update/bind-call
|
||||||
groupAdapter.notifyItemRangeChanged(
|
groupAdapter.notifyItemRangeChanged(
|
||||||
0,
|
0,
|
||||||
groupAdapter.itemCount.coerceAtMost(highlightCount.coerceAtLeast(lastNewItemsCount))
|
minOf(groupAdapter.itemCount, maxOf(highlightCount, lastNewItemsCount))
|
||||||
)
|
)
|
||||||
|
|
||||||
if (highlightCount > 0) {
|
if (highlightCount > 0) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue