diff --git a/app/src/main/java/app/passwordstore/ui/passwords/PasswordStore.kt b/app/src/main/java/app/passwordstore/ui/passwords/PasswordStore.kt index 27044b68..fce45b5a 100644 --- a/app/src/main/java/app/passwordstore/ui/passwords/PasswordStore.kt +++ b/app/src/main/java/app/passwordstore/ui/passwords/PasswordStore.kt @@ -184,7 +184,7 @@ class PasswordStore : BaseGitActivity() { super.onCreate(savedInstanceState) setContentView(R.layout.activity_pwdstore) - lifecycleScope.launchWhenCreated { + lifecycleScope.launch { model.currentDir.flowWithLifecycle(lifecycle).collect { dir -> val basePath = PasswordRepository.getRepositoryDirectory().absoluteFile supportActionBar?.apply {