Put "New feed group" item at the top
This commit is contained in:
parent
8f157be7e0
commit
8ceefee1e3
1 changed files with 1 additions and 1 deletions
|
@ -414,6 +414,7 @@ class SubscriptionFragment : BaseStateFragment<SubscriptionState>() {
|
||||||
val listViewMode = viewModel.getListViewMode()
|
val listViewMode = viewModel.getListViewMode()
|
||||||
|
|
||||||
carouselAdapter.clear()
|
carouselAdapter.clear()
|
||||||
|
carouselAdapter.add(if (listViewMode) FeedGroupAddNewItem() else FeedGroupAddNewGridItem())
|
||||||
carouselAdapter.add(
|
carouselAdapter.add(
|
||||||
if (listViewMode)
|
if (listViewMode)
|
||||||
FeedGroupCardItem(-1, getString(R.string.all), FeedGroupIcon.RSS)
|
FeedGroupCardItem(-1, getString(R.string.all), FeedGroupIcon.RSS)
|
||||||
|
@ -421,7 +422,6 @@ class SubscriptionFragment : BaseStateFragment<SubscriptionState>() {
|
||||||
FeedGroupCardGridItem(-1, getString(R.string.all), FeedGroupIcon.RSS)
|
FeedGroupCardGridItem(-1, getString(R.string.all), FeedGroupIcon.RSS)
|
||||||
)
|
)
|
||||||
carouselAdapter.addAll(groups)
|
carouselAdapter.addAll(groups)
|
||||||
carouselAdapter.add(if (listViewMode) FeedGroupAddNewItem() else FeedGroupAddNewGridItem())
|
|
||||||
|
|
||||||
if (feedGroupsCarouselState != null) {
|
if (feedGroupsCarouselState != null) {
|
||||||
feedGroupsCarousel.onRestoreInstanceState(feedGroupsCarouselState)
|
feedGroupsCarousel.onRestoreInstanceState(feedGroupsCarouselState)
|
||||||
|
|
Loading…
Add table
Reference in a new issue