aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarsh Shandilya <msfjarvis@gmail.com>2020-09-12 22:58:42 +0530
committerGitHub <noreply@github.com>2020-09-12 19:28:42 +0200
commitf2647dfbe61d5ee557d68ec1ed6676783bb8c9f2 (patch)
treefe9dae18c9f0d8ecba9d0bded9becebad56da3ba
parentdd63358b6aede411233db65ce7933107271d1a7d (diff)
Continue onboarding if permissions are granted prematurely (#1097)
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
-rw-r--r--app/src/main/java/com/zeapo/pwdstore/OnboardingActivity.kt4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/src/main/java/com/zeapo/pwdstore/OnboardingActivity.kt b/app/src/main/java/com/zeapo/pwdstore/OnboardingActivity.kt
index 5e415766..61bba1cd 100644
--- a/app/src/main/java/com/zeapo/pwdstore/OnboardingActivity.kt
+++ b/app/src/main/java/com/zeapo/pwdstore/OnboardingActivity.kt
@@ -122,6 +122,10 @@ class OnboardingActivity : AppCompatActivity() {
externalDirectorySelectAction.launch(UserPreference.createDirectorySelectionIntent(this))
}
}.launch(Manifest.permission.WRITE_EXTERNAL_STORAGE)
+ } else {
+ // Unlikely we have storage permissions without user ever selecting a directory,
+ // but let's not assume.
+ externalDirectorySelectAction.launch(UserPreference.createDirectorySelectionIntent(this))
}
} else {
MaterialAlertDialogBuilder(this)