Skip to content

Commit

Permalink
Respaldo SV-TL v2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
guillermolc committed Dec 23, 2020
1 parent 089892a commit 809febe
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 @@ -22,7 +22,7 @@ class FileVM(private val fileUtil: FileUtil) : ViewModel(), CoroutineScope {

fun fileResultLiveData(): LiveData<FileResult> = fileResultLiveData

fun Context.init_db_tiles() {
fun Context.init_db_tiles(tiempo: Long) {
launch {
fileUtil.apply {
try {
Expand All @@ -31,7 +31,7 @@ class FileVM(private val fileUtil: FileUtil) : ViewModel(), CoroutineScope {
if (hasCorrupt()) deleteDBs()
if (!hasCorrupt() && !hasDB()) {
fileResultLiveData.value = FileResult.Pass(false)
contador_db?.apply {if (!isRun()) start((2L * 60000) + 30000) }
contador_db?.apply {if (!isRun()) start((tiempo * 60000) + 30000) }
withContext(Dispatchers.IO) {
openOrCreateDatabase(
db_name,
Expand Down

0 comments on commit 809febe

Please sign in to comment.