mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2026-11-17 20:14:27 +00:00
Put "New feed group" item at the top
This commit is contained in:
1 file changed
+1
-1
@@ -414,6 +414,7 @@ class SubscriptionFragment : BaseStateFragment<SubscriptionState>() {
|
||||
val listViewMode = viewModel.getListViewMode()
|
||||
|
||||
carouselAdapter.clear()
|
||||
carouselAdapter.add(if (listViewMode) FeedGroupAddNewItem() else FeedGroupAddNewGridItem())
|
||||
carouselAdapter.add(
|
||||
if (listViewMode)
|
||||
FeedGroupCardItem(-1, getString(R.string.all), FeedGroupIcon.RSS)
|
||||
@@ -421,7 +422,6 @@ class SubscriptionFragment : BaseStateFragment<SubscriptionState>() {
|
||||
FeedGroupCardGridItem(-1, getString(R.string.all), FeedGroupIcon.RSS)
|
||||
)
|
||||
carouselAdapter.addAll(groups)
|
||||
carouselAdapter.add(if (listViewMode) FeedGroupAddNewItem() else FeedGroupAddNewGridItem())
|
||||
|
||||
if (feedGroupsCarouselState != null) {
|
||||
feedGroupsCarousel.onRestoreInstanceState(feedGroupsCarouselState)
|
||||
|
||||
Reference in new issue
Block a user