fix(SubscriptionsFragment): use null safe call

This commit is contained in:
FineFindus 2024-06-15 15:19:52 +02:00
parent c29bd5c464
commit 2d182e05a4
No known key found for this signature in database
GPG Key ID: 64873EE210FF8E6B

View File

@ -426,7 +426,7 @@ class SubscriptionsFragment : DynamicLayoutManagerFragment() {
fun removeItem(videoId: String) { fun removeItem(videoId: String) {
feedAdapter?.removeItemById(videoId) feedAdapter?.removeItemById(videoId)
sortedFeed.removeAll { it.url!!.toID() != videoId } sortedFeed.removeAll { it.url?.toID() != videoId }
} }
override fun onConfigurationChanged(newConfig: Configuration) { override fun onConfigurationChanged(newConfig: Configuration) {