优化
This commit is contained in:
1 parent
b8f54f548f
commit
b8e140623d
1 file changed
+1
-1
@@ -13,7 +13,7 @@ class DictRuleViewModel(application: Application) : BaseViewModel(application) {
|
||||
|
||||
fun update(vararg dictRule: DictRule) {
|
||||
execute {
|
||||
appDb.dictRuleDao.insert(*dictRule)
|
||||
appDb.dictRuleDao.update(*dictRule)
|
||||
}.onError {
|
||||
AppLog.put(it.localizedMessage, it)
|
||||
context.toastOnUi(it.localizedMessage)
|
||||
|
||||
Reference in new issue
Block a user