Finish activity in case of external directory (#1110)

Signed-off-by: Aditya Wasan <adityawasan55@gmail.com>
This commit is contained in:
Aditya Wasan 2020-09-19 01:08:59 +05:30 committed by GitHub
parent bad8e2b404
commit afbe29e7da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -172,7 +172,10 @@ class RepoLocationFragment : Fragment(R.layout.fragment_repo_location) {
return return
} }
if (externalRepo && externalRepoPath != null) { if (externalRepo && externalRepoPath != null) {
if (checkExternalDirectory()) return if (checkExternalDirectory()) {
finish()
return
}
} }
createRepository() createRepository()
} }