We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38ce800 commit 4b4337eCopy full SHA for 4b4337e
1 file changed
app/src/main/java/org/schabi/newpipe/local/feed/FeedFragment.kt
@@ -608,7 +608,7 @@ class FeedFragment : BaseStateFragment<FeedState>() {
608
// state until the user scrolls them out of the visible area which causes a update/bind-call
609
groupAdapter.notifyItemRangeChanged(
610
0,
611
- groupAdapter.itemCount.coerceAtMost(highlightCount.coerceAtLeast(lastNewItemsCount))
+ minOf(groupAdapter.itemCount, maxOf(highlightCount, lastNewItemsCount))
612
)
613
614
if (highlightCount > 0) {
0 commit comments