File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
app/src/main/java/at/techbee/jtx/ui/detail Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -335,6 +335,7 @@ class DetailViewModel(application: Application) : AndroidViewModel(application)
335335 }
336336
337337 saveSuspend()
338+ onChangeDone()
338339 val newId = databaseDao.moveToCollection(it.id, newCollectionId)
339340 if (newId == null ) {
340341 withContext(Dispatchers .Main ) {
@@ -344,9 +345,8 @@ class DetailViewModel(application: Application) : AndroidViewModel(application)
344345 }
345346 load(newId, _isAuthenticated )
346347 }
347-
348348 withContext(Dispatchers .Main ) { changeState.value = DetailChangeState .CHANGESAVED }
349- onChangeDone()
349+
350350 }
351351 }
352352
@@ -421,6 +421,7 @@ class DetailViewModel(application: Application) : AndroidViewModel(application)
421421 viewModelScope.launch(Dispatchers .IO ) {
422422 withContext (Dispatchers .Main ) { changeState.value = DetailChangeState .CHANGESAVING }
423423 saveSuspend()
424+ onChangeDone()
424425 withContext (Dispatchers .Main ) { changeState.value = DetailChangeState .CHANGESAVED }
425426 }
426427 }
You can’t perform that action at this time.
0 commit comments