Skip to content

Commit

Permalink
use thread instead of coroutine
Browse files Browse the repository at this point in the history
  • Loading branch information
hg42 committed Jan 22, 2023
1 parent f95c9ba commit ef7c08d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/src/main/java/com/machiav3lli/backup/OABX.kt
Original file line number Diff line number Diff line change
Expand Up @@ -247,13 +247,15 @@ class OABX : Application() {

scheduleAlarms()

MainScope().launch(Dispatchers.IO) {
//MainScope().launch(Dispatchers.IO) {
Thread {
val backupsMap = findBackups()
traceBackupsScan { "*** --------------------> packages: ${backupsMap.keys.size} backups: ${backupsMap.values.flatten().size}" }
val time = endBusy(startupMsg)
addInfoText("startup: ${"%.3f".format(time / 1E9)} sec")
startup = false
}
}.start()
//}
}

override fun onTerminate() {
Expand Down

0 comments on commit ef7c08d

Please sign in to comment.