summaryrefslogtreecommitdiff
path: root/app/src
diff options
context:
space:
mode:
authorAditya Wasan <adityawasan55@gmail.com>2020-09-19 01:08:59 +0530
committerGitHub <noreply@github.com>2020-09-19 01:08:59 +0530
commitafbe29e7dae748c10e9446da86431c0072a3c89e (patch)
treee47061f617f330bca08f3efb412d6e633a17c96d /app/src
parentbad8e2b4043b1239c17aafc1cc6779a347b3680e (diff)
Finish activity in case of external directory (#1110)
Signed-off-by: Aditya Wasan <adityawasan55@gmail.com>
Diffstat (limited to 'app/src')
-rw-r--r--app/src/main/java/com/zeapo/pwdstore/ui/onboarding/fragments/RepoLocationFragment.kt5
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()
}