Fixed missing "ifNecessary" permission request flag.

This commit is contained in:
Anton Chekulaev 2020-09-08 15:33:19 +10:00
parent e352869aeb
commit 96b252c8da

View File

@ -256,6 +256,7 @@ class SettingsActivity : PassphraseRequiredActionBarActivity() {
// Ask for an optional camera permission.
Permissions.with(this)
.request(Manifest.permission.CAMERA)
.ifNecessary()
.onAnyResult {
tempFile = AvatarSelection.startAvatarSelection(this, false, true)
}