mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 14:20: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.subProgress.isVisible = true
|
||||
|
||||
if (!isCurrentTabSubChannels && viewModel.videoFeed.value == null) {
|
||||
viewModel.fetchSubscriptions(requireContext())
|
||||
if (viewModel.videoFeed.value == null) {
|
||||
viewModel.fetchFeed(requireContext())
|
||||
}
|
||||
if (viewModel.subscriptions.value == null) {
|
||||
viewModel.fetchSubscriptions(requireContext())
|
||||
}
|
||||
|
||||
viewModel.videoFeed.observe(viewLifecycleOwner) {
|
||||
if (!isCurrentTabSubChannels && it != null) showFeed()
|
||||
|
Loading…
Reference in New Issue
Block a user