Skip to content

Commit 4b4337e

Browse files
committed
Used more understandable kotlin methods
1 parent 38ce800 commit 4b4337e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/src/main/java/org/schabi/newpipe/local/feed/FeedFragment.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@ class FeedFragment : BaseStateFragment<FeedState>() {
608608
// state until the user scrolls them out of the visible area which causes a update/bind-call
609609
groupAdapter.notifyItemRangeChanged(
610610
0,
611-
groupAdapter.itemCount.coerceAtMost(highlightCount.coerceAtLeast(lastNewItemsCount))
611+
minOf(groupAdapter.itemCount, maxOf(highlightCount, lastNewItemsCount))
612612
)
613613

614614
if (highlightCount > 0) {

0 commit comments

Comments
 (0)