Fix AddFeedDialog state not being reset after adding a feed

This commit is contained in:
Shinokuni 2024-03-21 11:25:43 +01:00
parent 0aced64faf
commit 2be1dd0b72
1 changed files with 2 additions and 0 deletions

View File

@ -173,6 +173,7 @@ class FeedScreenModel(
repository?.insertNewFeeds(listOf(url))
closeDialog()
resetAddFeedDialogState()
} else {
val rssUrls = HtmlParser.getFeedLink(url, get())
@ -185,6 +186,7 @@ class FeedScreenModel(
repository?.insertNewFeeds(rssUrls.map { it.url })
closeDialog()
resetAddFeedDialogState()
}
}
} catch (e: Exception) {