Always show progress indicator while scanning

This commit is contained in:
Naveen 2023-07-08 22:28:16 +05:30
parent 33fb595aec
commit 41b2147a3e
No known key found for this signature in database
GPG key ID: 0E155DAD31671DA3

View file

@ -104,7 +104,7 @@ class MainActivity : SimpleActivity() {
}
if (config.appRunCount > 1) {
refreshAllFragments()
refreshAllFragments(progress = false)
}
}
@ -210,9 +210,8 @@ class MainActivity : SimpleActivity() {
refreshAllFragments()
}
private fun refreshAllFragments() {
val firstRun = config.appRunCount == 1
if (firstRun) {
private fun refreshAllFragments(progress: Boolean = true) {
if (progress) {
loading_progress_bar.show()
}
@ -222,9 +221,7 @@ class MainActivity : SimpleActivity() {
it?.setupFragment(this)
}
if (firstRun) {
loading_progress_bar.hide()
}
loading_progress_bar.hide()
}
}
}