Skip to content
This repository was archived by the owner on Oct 15, 2024. It is now read-only.

Commit afbe29e

Browse files
authored
Finish activity in case of external directory (#1110)
Signed-off-by: Aditya Wasan <[email protected]>
1 parent bad8e2b commit afbe29e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app/src/main/java/com/zeapo/pwdstore/ui/onboarding/fragments/RepoLocationFragment.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,10 @@ class RepoLocationFragment : Fragment(R.layout.fragment_repo_location) {
172172
return
173173
}
174174
if (externalRepo && externalRepoPath != null) {
175-
if (checkExternalDirectory()) return
175+
if (checkExternalDirectory()) {
176+
finish()
177+
return
178+
}
176179
}
177180
createRepository()
178181
}

0 commit comments

Comments
 (0)