mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2024-12-03 07:21:29 +01:00
Used more understandable kotlin methods
This commit is contained in:
parent
38ce800685
commit
4b4337e078
@ -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
|
||||
groupAdapter.notifyItemRangeChanged(
|
||||
0,
|
||||
groupAdapter.itemCount.coerceAtMost(highlightCount.coerceAtLeast(lastNewItemsCount))
|
||||
minOf(groupAdapter.itemCount, maxOf(highlightCount, lastNewItemsCount))
|
||||
)
|
||||
|
||||
if (highlightCount > 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user