From ed5385a0d81d8ab33b3d74046c5914820725c0ff Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Thu, 12 Jan 2023 10:59:30 +0530 Subject: [PATCH] fix: remove deprecated method --- .../main/java/app/passwordstore/ui/passwords/PasswordStore.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {