Continue onboarding if permissions are granted prematurely (#1097)

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
Harsh Shandilya
2020-09-12 22:58:42 +05:30
committed by GitHub
parent dd63358b6a
commit f2647dfbe6

View File

@@ -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)