From afbe29e7dae748c10e9446da86431c0072a3c89e Mon Sep 17 00:00:00 2001 From: Aditya Wasan Date: Sat, 19 Sep 2020 01:08:59 +0530 Subject: Finish activity in case of external directory (#1110) Signed-off-by: Aditya Wasan --- .../zeapo/pwdstore/ui/onboarding/fragments/RepoLocationFragment.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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() } -- cgit v1.2.3