Fix service reload
This commit is contained in:
@@ -338,7 +338,7 @@ class OverviewFragment : Fragment() {
|
||||
if (restart) {
|
||||
mainActivity.reconnect()
|
||||
BoxService.stop()
|
||||
delay(200)
|
||||
delay(200L)
|
||||
mainActivity.startService()
|
||||
return
|
||||
}
|
||||
|
||||
@@ -171,7 +171,7 @@ class EditProfileActivity : AbstractActivity() {
|
||||
val binding = binding ?: return
|
||||
binding.progressView.isVisible = true
|
||||
lifecycleScope.launch(Dispatchers.IO) {
|
||||
delay(200)
|
||||
delay(200L)
|
||||
try {
|
||||
ProfileManager.update(profile)
|
||||
} catch (e: Exception) {
|
||||
@@ -212,7 +212,7 @@ class EditProfileActivity : AbstractActivity() {
|
||||
val binding = binding ?: return
|
||||
binding.progressView.isVisible = true
|
||||
lifecycleScope.launch(Dispatchers.IO) {
|
||||
delay(200)
|
||||
delay(200L)
|
||||
try {
|
||||
Libbox.checkConfig(File(profile.typed.path).readText())
|
||||
} catch (e: Exception) {
|
||||
|
||||
@@ -138,7 +138,7 @@ class EditProfileContentActivity : AbstractActivity() {
|
||||
}
|
||||
}
|
||||
withContext(Dispatchers.Main) {
|
||||
delay(200)
|
||||
delay(200L)
|
||||
binding.progressView.isInvisible = true
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user