From 75c61d66238a777103d59a0751c65c1a88167628 Mon Sep 17 00:00:00 2001 From: Sven Jacobs Date: Sun, 13 Oct 2024 12:41:12 +0200 Subject: [PATCH] fix: feed title empty on initial app start --- .../com/nononsenseapps/feeder/archmodel/Repository.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/com/nononsenseapps/feeder/archmodel/Repository.kt b/app/src/main/java/com/nononsenseapps/feeder/archmodel/Repository.kt index e7f1364114..c1582d0997 100644 --- a/app/src/main/java/com/nononsenseapps/feeder/archmodel/Repository.kt +++ b/app/src/main/java/com/nononsenseapps/feeder/archmodel/Repository.kt @@ -455,10 +455,10 @@ class Repository(override val di: DI) : DIAware { else -> null }, type = - when (feedId) { - ID_UNSET -> FeedType.TAG - ID_ALL_FEEDS -> FeedType.ALL_FEEDS - ID_SAVED_ARTICLES -> FeedType.SAVED_ARTICLES + when { + tag.isNotBlank() -> FeedType.TAG + feedId == ID_UNSET || feedId == ID_ALL_FEEDS -> FeedType.ALL_FEEDS + feedId == ID_SAVED_ARTICLES -> FeedType.SAVED_ARTICLES else -> FeedType.FEED }, unreadCount = unreadCount,