mirror of https://github.com/readrops/Readrops.git
Fix AddFeedDialog state not being reset after adding a feed
This commit is contained in:
parent
0aced64faf
commit
2be1dd0b72
|
@ -173,6 +173,7 @@ class FeedScreenModel(
|
||||||
repository?.insertNewFeeds(listOf(url))
|
repository?.insertNewFeeds(listOf(url))
|
||||||
|
|
||||||
closeDialog()
|
closeDialog()
|
||||||
|
resetAddFeedDialogState()
|
||||||
} else {
|
} else {
|
||||||
val rssUrls = HtmlParser.getFeedLink(url, get())
|
val rssUrls = HtmlParser.getFeedLink(url, get())
|
||||||
|
|
||||||
|
@ -185,6 +186,7 @@ class FeedScreenModel(
|
||||||
repository?.insertNewFeeds(rssUrls.map { it.url })
|
repository?.insertNewFeeds(rssUrls.map { it.url })
|
||||||
|
|
||||||
closeDialog()
|
closeDialog()
|
||||||
|
resetAddFeedDialogState()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
|
|
Loading…
Reference in New Issue