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

Commit f2647df

Browse files
authored
Continue onboarding if permissions are granted prematurely (#1097)
Signed-off-by: Harsh Shandilya <[email protected]>
1 parent dd63358 commit f2647df

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/src/main/java/com/zeapo/pwdstore/OnboardingActivity.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,10 @@ class OnboardingActivity : AppCompatActivity() {
122122
externalDirectorySelectAction.launch(UserPreference.createDirectorySelectionIntent(this))
123123
}
124124
}.launch(Manifest.permission.WRITE_EXTERNAL_STORAGE)
125+
} else {
126+
// Unlikely we have storage permissions without user ever selecting a directory,
127+
// but let's not assume.
128+
externalDirectorySelectAction.launch(UserPreference.createDirectorySelectionIntent(this))
125129
}
126130
} else {
127131
MaterialAlertDialogBuilder(this)

0 commit comments

Comments
 (0)