File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
app/src/main/java/org/permanent/permanent/viewmodels Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -312,11 +312,13 @@ open class MyFilesViewModel(application: Application) : SelectionViewModel(appli
312312 }
313313
314314 override fun onFinished (upload : Upload , succeeded : Boolean ) {
315- folderName.value?.let { sendEvent(RecordEventAction .SUBMIT , data = mapOf (" workspace" to it)) }
316315 currentFolder.value?.getUploadQueue()?.removeFinishedUpload(upload)
317316 uploadsAdapter.remove(upload)
318317
319- if (succeeded) addFakeItemToFilesList(upload)
318+ if (succeeded) {
319+ addFakeItemToFilesList(upload)
320+ folderName.value?.let { sendEvent(RecordEventAction .SUBMIT , data = mapOf (" workspace" to it)) }
321+ }
320322 if (uploadsAdapter.itemCount == 0 ) {
321323 existsFiles.value = true
322324 refreshJob?.cancel()
You can’t perform that action at this time.
0 commit comments