From f2647dfbe61d5ee557d68ec1ed6676783bb8c9f2 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Sat, 12 Sep 2020 22:58:42 +0530 Subject: Continue onboarding if permissions are granted prematurely (#1097) Signed-off-by: Harsh Shandilya --- app/src/main/java/com/zeapo/pwdstore/OnboardingActivity.kt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app/src/main/java/com') 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) -- cgit v1.2.3