diff options
author | Harsh Shandilya <msfjarvis@gmail.com> | 2020-09-12 22:58:42 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-12 19:28:42 +0200 |
commit | f2647dfbe61d5ee557d68ec1ed6676783bb8c9f2 (patch) | |
tree | fe9dae18c9f0d8ecba9d0bded9becebad56da3ba /app/src/main | |
parent | dd63358b6aede411233db65ce7933107271d1a7d (diff) |
Continue onboarding if permissions are granted prematurely (#1097)
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
Diffstat (limited to 'app/src/main')
-rw-r--r-- | app/src/main/java/com/zeapo/pwdstore/OnboardingActivity.kt | 4 |
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) |