@ -29,6 +29,7 @@ class BookSourceEditViewModel(application: Application) : BaseViewModel(applicat
} ?: let {
bookSource.customOrder = App.db.bookSourceDao().maxOrder + 1
}
sourceLiveData.postValue(bookSource)
App.db.bookSourceDao().insert(bookSource)
}.onFinally {
finally?.let { it() }
@ -30,6 +30,7 @@ class RssSourceEditViewModel(application: Application) : BaseViewModel(applicati
rssSource.customOrder = App.db.rssSourceDao().maxOrder + 1
sourceLiveData.postValue(rssSource)
App.db.rssSourceDao().insert(rssSource)
}.onSuccess {
success()