diff --git a/app/src/main/java/com/github/libretube/fragments/SubscriptionsFragment.kt b/app/src/main/java/com/github/libretube/fragments/SubscriptionsFragment.kt index bc00b340c..d1b4efb03 100644 --- a/app/src/main/java/com/github/libretube/fragments/SubscriptionsFragment.kt +++ b/app/src/main/java/com/github/libretube/fragments/SubscriptionsFragment.kt @@ -134,8 +134,11 @@ class SubscriptionsFragment : BaseFragment() { else -> feed } - binding.subFeedContainer.visibility = if (viewModel.videoFeed.value!!.isEmpty()) View.GONE else View.VISIBLE - binding.emptyFeed.visibility = if (viewModel.videoFeed.value!!.isEmpty()) View.VISIBLE else View.GONE + binding.subChannelsContainer.visibility = View.GONE + binding.subFeedContainer.visibility = + if (viewModel.videoFeed.value!!.isEmpty()) View.GONE else View.VISIBLE + binding.emptyFeed.visibility = + if (viewModel.videoFeed.value!!.isEmpty()) View.VISIBLE else View.GONE binding.subProgress.visibility = View.GONE subscriptionAdapter = TrendingAdapter(sortedFeed, childFragmentManager, false) @@ -169,6 +172,7 @@ class SubscriptionsFragment : BaseFragment() { viewModel.subscriptions.value!!.toMutableList() ) + binding.subFeedContainer.visibility = View.GONE binding.subChannelsContainer.visibility = if (viewModel.subscriptions.value!!.isEmpty()) View.GONE else View.VISIBLE binding.emptyFeed.visibility = @@ -176,6 +180,6 @@ class SubscriptionsFragment : BaseFragment() { } private fun isShowingFeed(): Boolean { - return binding.subFeedContainer.isVisible + return !binding.subChannelsContainer.isVisible } }