Skip to content

Commit

Permalink
Respaldo SV-TL v2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
guillermolc committed Dec 23, 2020
1 parent cd1f002 commit 089892a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions svtl/src/main/java/guillermo/lagos/svtl/file/FileVM.kt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class FileVM(private val fileUtil: FileUtil) : ViewModel(), CoroutineScope {
launch {
fileUtil.apply {
try {
/*fileResultLiveData.value = FileResult.Loading(true)*/
fileResultLiveData.value = FileResult.Loading(true)
if (validateSize()) deleteDBs()
if (hasCorrupt()) deleteDBs()
if (!hasCorrupt() && !hasDB()) {
Expand Down Expand Up @@ -57,7 +57,7 @@ class FileVM(private val fileUtil: FileUtil) : ViewModel(), CoroutineScope {
} catch (exception: Exception) {
fileResultLiveData.value = FileResult.Error
} finally {
/*fileResultLiveData.value = FileResult.Loading(false)*/
fileResultLiveData.value = FileResult.Loading(false)
}
}
}
Expand Down

0 comments on commit 089892a

Please sign in to comment.