mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2024-12-23 08:30:44 +00:00
Merge remote-tracking branch 'origin/list-view-alt-alt-implementation' into list-view-alt-alt-implementation
This commit is contained in:
commit
f712ea34e0
@ -423,6 +423,12 @@ class SubscriptionFragment : BaseStateFragment<SubscriptionState>() {
|
|||||||
feedGroupsSortMenuItem.showSortButton = groups.size > 1
|
feedGroupsSortMenuItem.showSortButton = groups.size > 1
|
||||||
feedGroupsSortMenuItem.listViewMode = listViewMode
|
feedGroupsSortMenuItem.listViewMode = listViewMode
|
||||||
binding.itemsList.post {
|
binding.itemsList.post {
|
||||||
|
if (context == null) {
|
||||||
|
// since this part was posted to the next UI cycle, the fragment might have been
|
||||||
|
// removed in the meantime
|
||||||
|
return@post
|
||||||
|
}
|
||||||
|
|
||||||
feedGroupsCarousel.notifyChanged(FeedGroupCarouselItem.PAYLOAD_UPDATE_LIST_VIEW_MODE)
|
feedGroupsCarousel.notifyChanged(FeedGroupCarouselItem.PAYLOAD_UPDATE_LIST_VIEW_MODE)
|
||||||
feedGroupsSortMenuItem.notifyChanged(GroupsHeader.PAYLOAD_UPDATE_ICONS)
|
feedGroupsSortMenuItem.notifyChanged(GroupsHeader.PAYLOAD_UPDATE_ICONS)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user