Skip to content

Commit

Permalink
even more concurrency
Browse files Browse the repository at this point in the history
  • Loading branch information
seldon1000 committed Aug 22, 2021
1 parent 9948fe6 commit 664e318
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/src/main/java/eu/seldon1000/nextpass/MainViewModel.kt
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ import eu.seldon1000.nextpass.services.NextPassAutofillService
import eu.seldon1000.nextpass.services.StartupBroadcastReceiver
import eu.seldon1000.nextpass.ui.items.TextFieldItem
import eu.seldon1000.nextpass.ui.layout.Routes
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.launch
import kotlinx.serialization.json.jsonObject
Expand Down Expand Up @@ -562,7 +563,7 @@ class MainViewModel(application: Application) : AndroidViewModel(application) {
navController.value.currentDestination?.route == Routes.NewPassword.route ||
navController.value.currentDestination?.route == Routes.NewFolder.route

viewModelScope.launch {
viewModelScope.launch(context = Dispatchers.IO) {
try {
request()

Expand Down

0 comments on commit 664e318

Please sign in to comment.