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.
2 parents a44b7c9 + 4b32890 commit f712ea3Copy full SHA for f712ea3
1 file changed
app/src/main/java/org/schabi/newpipe/local/subscription/SubscriptionFragment.kt
@@ -423,6 +423,12 @@ class SubscriptionFragment : BaseStateFragment<SubscriptionState>() {
423
feedGroupsSortMenuItem.showSortButton = groups.size > 1
424
feedGroupsSortMenuItem.listViewMode = listViewMode
425
binding.itemsList.post {
426
+ if (context == null) {
427
+ // since this part was posted to the next UI cycle, the fragment might have been
428
+ // removed in the meantime
429
+ return@post
430
+ }
431
+
432
feedGroupsCarousel.notifyChanged(FeedGroupCarouselItem.PAYLOAD_UPDATE_LIST_VIEW_MODE)
433
feedGroupsSortMenuItem.notifyChanged(GroupsHeader.PAYLOAD_UPDATE_ICONS)
434
0 commit comments