Skip to content

Commit 8ceefee

Browse files
committed
Put "New feed group" item at the top
1 parent 8f157be commit 8ceefee

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/src/main/java/org/schabi/newpipe/local/subscription/SubscriptionFragment.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,14 +414,14 @@ class SubscriptionFragment : BaseStateFragment<SubscriptionState>() {
414414
val listViewMode = viewModel.getListViewMode()
415415

416416
carouselAdapter.clear()
417+
carouselAdapter.add(if (listViewMode) FeedGroupAddNewItem() else FeedGroupAddNewGridItem())
417418
carouselAdapter.add(
418419
if (listViewMode)
419420
FeedGroupCardItem(-1, getString(R.string.all), FeedGroupIcon.RSS)
420421
else
421422
FeedGroupCardGridItem(-1, getString(R.string.all), FeedGroupIcon.RSS)
422423
)
423424
carouselAdapter.addAll(groups)
424-
carouselAdapter.add(if (listViewMode) FeedGroupAddNewItem() else FeedGroupAddNewGridItem())
425425

426426
if (feedGroupsCarouselState != null) {
427427
feedGroupsCarousel.onRestoreInstanceState(feedGroupsCarouselState)

0 commit comments

Comments
 (0)