mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-13 05:40:31 +05:30
Fix infinite repeated videos load on ChannelFragment.kt
This commit is contained in:
parent
887d062b12
commit
4782c24185
@ -116,7 +116,7 @@ class ChannelFragment : DynamicLayoutManagerFragment() {
|
||||
|
||||
try {
|
||||
if (binding.tabChips.checkedChipId == binding.videos.id) {
|
||||
fetchChannelNextPage(nextPages[0] ?: return@launch)?.let {
|
||||
fetchChannelNextPage(nextPages[0] ?: return@launch).let {
|
||||
nextPages[0] = it
|
||||
}
|
||||
} else {
|
||||
@ -127,7 +127,7 @@ class ChannelFragment : DynamicLayoutManagerFragment() {
|
||||
tab.name == possibleTabs[currentTabIndex - 1].identifierName
|
||||
}
|
||||
val nextPage = nextPages[currentTabIndex] ?: return@launch
|
||||
fetchTabNextPage(nextPage, channelTab)?.let {
|
||||
fetchTabNextPage(nextPage, channelTab).let {
|
||||
nextPages[currentTabIndex] = it
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user