mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-15 14:50:30 +05:30
fix: unable to view subscribed channels
Co-authored-by: Jt90-spec <80746249+Jt90-spec@users.noreply.github.com>
This commit is contained in:
parent
8bbfa954fd
commit
3b0ab2d696
@ -103,10 +103,12 @@ class SubscriptionsFragment : DynamicLayoutManagerFragment() {
|
|||||||
binding.subRefresh.isEnabled = true
|
binding.subRefresh.isEnabled = true
|
||||||
binding.subProgress.isVisible = true
|
binding.subProgress.isVisible = true
|
||||||
|
|
||||||
if (!isCurrentTabSubChannels && viewModel.videoFeed.value == null) {
|
if (viewModel.videoFeed.value == null) {
|
||||||
viewModel.fetchSubscriptions(requireContext())
|
|
||||||
viewModel.fetchFeed(requireContext())
|
viewModel.fetchFeed(requireContext())
|
||||||
}
|
}
|
||||||
|
if (viewModel.subscriptions.value == null) {
|
||||||
|
viewModel.fetchSubscriptions(requireContext())
|
||||||
|
}
|
||||||
|
|
||||||
viewModel.videoFeed.observe(viewLifecycleOwner) {
|
viewModel.videoFeed.observe(viewLifecycleOwner) {
|
||||||
if (!isCurrentTabSubChannels && it != null) showFeed()
|
if (!isCurrentTabSubChannels && it != null) showFeed()
|
||||||
|
Loading…
Reference in New Issue
Block a user