mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 22:30:30 +05:30
minor fixes
This commit is contained in:
parent
c4c8a67f91
commit
2151fd2dc9
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user