Skip to content

Commit

Permalink
Respaldo SV-TL v2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
guillermolc committed Dec 22, 2020
1 parent 45528ce commit 9a1912c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions svtl/src/main/java/guillermo/lagos/svtl/file/FileResult.kt
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,7 @@ sealed class FileResult {

data class Copied(val fileCopied: Boolean?) : FileResult()

data class Pass(val fileCopied: Boolean) : FileResult()

object Error : FileResult()
}
2 changes: 1 addition & 1 deletion svtl/src/main/java/guillermo/lagos/svtl/file/FileVM.kt
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class FileVM(private val fileUtil: FileUtil) : ViewModel(), CoroutineScope {
copyDatabaseZip(db_file, file_name)
}
fileResultLiveData.value = FileResult.Copied(destinationFile)
}else fileResultLiveData.value = FileResult.Copied(true)
}else fileResultLiveData.value = FileResult.Pass(true)


} catch (exception: Exception) {
Expand Down

0 comments on commit 9a1912c

Please sign in to comment.