diff options
author | Aditya Wasan <adityawasan55@gmail.com> | 2020-09-19 01:08:59 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-19 01:08:59 +0530 |
commit | afbe29e7dae748c10e9446da86431c0072a3c89e (patch) | |
tree | e47061f617f330bca08f3efb412d6e633a17c96d | |
parent | bad8e2b4043b1239c17aafc1cc6779a347b3680e (diff) |
Finish activity in case of external directory (#1110)
Signed-off-by: Aditya Wasan <adityawasan55@gmail.com>
-rw-r--r-- | app/src/main/java/com/zeapo/pwdstore/ui/onboarding/fragments/RepoLocationFragment.kt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/src/main/java/com/zeapo/pwdstore/ui/onboarding/fragments/RepoLocationFragment.kt b/app/src/main/java/com/zeapo/pwdstore/ui/onboarding/fragments/RepoLocationFragment.kt index 7ff85237..9e8a8f9d 100644 --- a/app/src/main/java/com/zeapo/pwdstore/ui/onboarding/fragments/RepoLocationFragment.kt +++ b/app/src/main/java/com/zeapo/pwdstore/ui/onboarding/fragments/RepoLocationFragment.kt @@ -172,7 +172,10 @@ class RepoLocationFragment : Fragment(R.layout.fragment_repo_location) { return } if (externalRepo && externalRepoPath != null) { - if (checkExternalDirectory()) return + if (checkExternalDirectory()) { + finish() + return + } } createRepository() } |