mirror of
				https://github.com/TeamNewPipe/NewPipe
				synced 2025-10-31 07:13:00 +00:00 
			
		
		
		
	Fix random crash in SubscriptionFragment
This commit is contained in:
		| @@ -422,6 +422,12 @@ class SubscriptionFragment : BaseStateFragment<SubscriptionState>() { | ||||
|         feedGroupsSortMenuItem.showSortButton = groups.size > 1 | ||||
|         feedGroupsSortMenuItem.listViewMode = listViewMode | ||||
|         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) | ||||
|             feedGroupsSortMenuItem.notifyChanged(GroupsHeader.PAYLOAD_UPDATE_ICONS) | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Stypox
					Stypox