We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a41aa01 commit 4b32890Copy full SHA for 4b32890
1 file changed
app/src/main/java/org/schabi/newpipe/local/subscription/SubscriptionFragment.kt
@@ -422,6 +422,12 @@ class SubscriptionFragment : BaseStateFragment<SubscriptionState>() {
422
feedGroupsSortMenuItem.showSortButton = groups.size > 1
423
feedGroupsSortMenuItem.listViewMode = listViewMode
424
binding.itemsList.post {
425
+ if (context == null) {
426
+ // since this part was posted to the next UI cycle, the fragment might have been
427
+ // removed in the meantime
428
+ return@post
429
+ }
430
+
431
feedGroupsCarousel.notifyChanged(FeedGroupCarouselItem.PAYLOAD_UPDATE_LIST_VIEW_MODE)
432
feedGroupsSortMenuItem.notifyChanged(GroupsHeader.PAYLOAD_UPDATE_ICONS)
433
0 commit comments