Put "New feed group" item at the top

pull/9207/head
Stypox 2022-10-27 13:51:56 +02:00
rodzic 8f157be7e0
commit 8ceefee1e3
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4BDF1B40A49FDD23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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)