mirror of
https://github.com/android-password-store/Android-Password-Store
synced 2025-08-31 14:25:28 +00:00
Continue onboarding if permissions are granted prematurely (#1097)
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
@@ -122,6 +122,10 @@ class OnboardingActivity : AppCompatActivity() {
|
|||||||
externalDirectorySelectAction.launch(UserPreference.createDirectorySelectionIntent(this))
|
externalDirectorySelectAction.launch(UserPreference.createDirectorySelectionIntent(this))
|
||||||
}
|
}
|
||||||
}.launch(Manifest.permission.WRITE_EXTERNAL_STORAGE)
|
}.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 {
|
} else {
|
||||||
MaterialAlertDialogBuilder(this)
|
MaterialAlertDialogBuilder(this)
|
||||||
|
Reference in New Issue
Block a user