mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-29 08:20:32 +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 {
|
try {
|
||||||
if (binding.tabChips.checkedChipId == binding.videos.id) {
|
if (binding.tabChips.checkedChipId == binding.videos.id) {
|
||||||
fetchChannelNextPage(nextPages[0] ?: return@launch)?.let {
|
fetchChannelNextPage(nextPages[0] ?: return@launch).let {
|
||||||
nextPages[0] = it
|
nextPages[0] = it
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@ -127,7 +127,7 @@ class ChannelFragment : DynamicLayoutManagerFragment() {
|
|||||||
tab.name == possibleTabs[currentTabIndex - 1].identifierName
|
tab.name == possibleTabs[currentTabIndex - 1].identifierName
|
||||||
}
|
}
|
||||||
val nextPage = nextPages[currentTabIndex] ?: return@launch
|
val nextPage = nextPages[currentTabIndex] ?: return@launch
|
||||||
fetchTabNextPage(nextPage, channelTab)?.let {
|
fetchTabNextPage(nextPage, channelTab).let {
|
||||||
nextPages[currentTabIndex] = it
|
nextPages[currentTabIndex] = it
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user